summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-09-16 08:39:56 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-09-17 03:03:22 (GMT)
commitd3fa072c06dc3ca876ffea2b700f332d4425e56a (patch)
treef14e96eb81d08add8c95a69d5bfffdbaa7fb3dc4 /src/opengl
parent64e03f7ada9eb6af7c65dbea7a36ebcb3f4e67fb (diff)
downloadQt-d3fa072c06dc3ca876ffea2b700f332d4425e56a.zip
Qt-d3fa072c06dc3ca876ffea2b700f332d4425e56a.tar.gz
Qt-d3fa072c06dc3ca876ffea2b700f332d4425e56a.tar.bz2
context()->makeCurrent() is called above, so this is redundant.
Reviewed-by: Samuel
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qwindowsurface_gl.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/opengl/qwindowsurface_gl.cpp b/src/opengl/qwindowsurface_gl.cpp
index e89352d..b2420ba 100644
--- a/src/opengl/qwindowsurface_gl.cpp
+++ b/src/opengl/qwindowsurface_gl.cpp
@@ -443,8 +443,6 @@ void QGLWindowSurface::flush(QWidget *widget, const QRegion &rgn, const QPoint &
QRegion dirtyRegion = QRegion(window()->rect()) - d_ptr->paintedRegion;
if (!dirtyRegion.isEmpty()) {
- context()->makeCurrent();
-
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();