summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglpixelbuffer.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-05-13 12:47:54 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-05-13 13:15:49 (GMT)
commitc8c5becc81679eb8a9a0f8baa454bc43fd3cccf9 (patch)
tree357b605e0fa6cdf3b98916ffce9ebb3e051c33fc /src/opengl/qglpixelbuffer.cpp
parentb352b0e637ca19591ee122c47ce4a6ab0a26c06b (diff)
downloadQt-c8c5becc81679eb8a9a0f8baa454bc43fd3cccf9.zip
Qt-c8c5becc81679eb8a9a0f8baa454bc43fd3cccf9.tar.gz
Qt-c8c5becc81679eb8a9a0f8baa454bc43fd3cccf9.tar.bz2
Reverted use of GL 2 engine as default on desktop.
Using GL 2 as default engine breaks the use cases where OpenGL commands are inter-mixed with QPainter commands, such as when using raw OpenGL in graphicsview. For now we'll use the old OpenGL engine for QGLWidget, QGLPixelBuffer, and QGLFramebufferObject on desktop, and the OpenGL 2 paint engine when the OpenGL graphics system is used. Reviewed-by: Trond
Diffstat (limited to 'src/opengl/qglpixelbuffer.cpp')
-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 cb24177..00b58d3 100644
--- a/src/opengl/qglpixelbuffer.cpp
+++ b/src/opengl/qglpixelbuffer.cpp
@@ -375,7 +375,7 @@ Q_GLOBAL_STATIC(QOpenGLPaintEngine, qt_buffer_engine)
QPaintEngine *QGLPixelBuffer::paintEngine() const
{
#if !defined(QT_OPENGL_ES_2)
- if (qt_gl_preferGL2Engine())
+ if (d_ptr->qctx->d_func()->internal_context || qt_gl_preferGL2Engine())
return qt_buffer_2_engine();
else
return qt_buffer_engine();