It helps to also set the texture size in GLES

Up to now we have not used it in OpenGL ES, but now we do and
rendering is funny if the size is not set.
This commit is contained in:
Martin Gräßlin 2011-07-02 15:31:36 +02:00
parent f978d7b97d
commit 42aac88f1b

View file

@ -228,7 +228,6 @@ void SceneOpenGL::Texture::findTarget()
bool SceneOpenGL::Texture::load(const Pixmap& pix, const QSize& size,
int depth, QRegion region)
{
Q_UNUSED(size)
Q_UNUSED(depth)
Q_UNUSED(region)
@ -259,6 +258,7 @@ bool SceneOpenGL::Texture::load(const Pixmap& pix, const QSize& size,
unbind();
checkGLError("load texture");
setYInverted(true);
mSize = size;
}
return true;
}