From d3fa072c06dc3ca876ffea2b700f332d4425e56a Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Wed, 16 Sep 2009 10:39:56 +0200 Subject: context()->makeCurrent() is called above, so this is redundant. Reviewed-by: Samuel --- src/opengl/qwindowsurface_gl.cpp | 2 -- 1 file changed, 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(); -- cgit v0.12