summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_p.h
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-02-18 13:54:51 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-04-01 14:32:51 (GMT)
commitd903f379470fb9f9159fbf37f2cfc02638cd05f6 (patch)
tree2c3211bb9f8492337601303c7420a424ae4fbf59 /src/opengl/qgl_p.h
parent6513e4b9513dfc591c53744517f05aa3c522ace3 (diff)
downloadQt-d903f379470fb9f9159fbf37f2cfc02638cd05f6.zip
Qt-d903f379470fb9f9159fbf37f2cfc02638cd05f6.tar.gz
Qt-d903f379470fb9f9159fbf37f2cfc02638cd05f6.tar.bz2
Fixes: Enable use of the GL pixmap backend in the GL 2 paint engine.
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r--src/opengl/qgl_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h
index 2eccc23..76f3812 100644
--- a/src/opengl/qgl_p.h
+++ b/src/opengl/qgl_p.h
@@ -418,9 +418,13 @@ inline GLenum qt_gl_preferredTextureFormat()
inline GLenum qt_gl_preferredTextureTarget()
{
+#if 1 || defined(QT_OPENGL_ES_2)
+ return GL_TEXTURE_2D;
+#else
return (QGLExtensions::glExtensions & QGLExtensions::TextureRectangle)
? GL_TEXTURE_RECTANGLE_NV
: GL_TEXTURE_2D;
+#endif
}