summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-09-14 13:00:15 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-09-14 13:02:01 (GMT)
commit3d915e734aaab1a208cd6a823c5e6923d05a2831 (patch)
tree05f1690c76569c5f30d3975bcfd720469524b83f
parentf1b134bc57584c64e9703683d2c3bc6c46264d19 (diff)
downloadQt-3d915e734aaab1a208cd6a823c5e6923d05a2831.zip
Qt-3d915e734aaab1a208cd6a823c5e6923d05a2831.tar.gz
Qt-3d915e734aaab1a208cd6a823c5e6923d05a2831.tar.bz2
Ensured that we use GL 1 engine when -graphicssystem opengl1 is used.
Reviewed-by: Trond
-rw-r--r--src/opengl/qglpixelbuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qglpixelbuffer.cpp b/src/opengl/qglpixelbuffer.cpp
index 6cd8968..07bc711 100644
--- a/src/opengl/qglpixelbuffer.cpp
+++ b/src/opengl/qglpixelbuffer.cpp
@@ -402,7 +402,7 @@ QPaintEngine *QGLPixelBuffer::paintEngine() const
#elif defined(QT_OPENGL_ES_2)
return qt_buffer_2_engine();
#else
- if (d_ptr->qctx->d_func()->internal_context || qt_gl_preferGL2Engine())
+ if (qt_gl_preferGL2Engine())
return qt_buffer_2_engine();
else
return qt_buffer_engine();