From 42aac88f1ba0e9b6c32e87573ec479b38de35981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 2 Jul 2011 15:31:36 +0200 Subject: [PATCH] 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. --- scene_opengl_egl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene_opengl_egl.cpp b/scene_opengl_egl.cpp index 03af59c255..9d2c61c528 100644 --- a/scene_opengl_egl.cpp +++ b/scene_opengl_egl.cpp @@ -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; }