summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-01-26 12:03:27 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-01-26 13:16:11 (GMT)
commitde5b07606c1fbc2330efc6915ad7d1ac866752f2 (patch)
treedad25c57f626b4fb98dac602db3f7629d856fc2d /src/opengl
parentd36a3a6ebc17935371cfca2a9f22dcd683205b5b (diff)
downloadQt-de5b07606c1fbc2330efc6915ad7d1ac866752f2.zip
Qt-de5b07606c1fbc2330efc6915ad7d1ac866752f2.tar.gz
Qt-de5b07606c1fbc2330efc6915ad7d1ac866752f2.tar.bz2
Make sure we blit the fbo on flush in QGLWindowSurface
Reviewed-by: sroedal
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qwindowsurface_gl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/qwindowsurface_gl.cpp b/src/opengl/qwindowsurface_gl.cpp
index ea5e9a7..04cc358 100644
--- a/src/opengl/qwindowsurface_gl.cpp
+++ b/src/opengl/qwindowsurface_gl.cpp
@@ -473,6 +473,8 @@ static void drawTexture(const QRectF &rect, GLuint tex_id, const QSize &texSize,
void QGLWindowSurface::beginPaint(const QRegion &)
{
+ d_ptr->did_paint = true;
+
if (!context())
return;
@@ -487,8 +489,6 @@ void QGLWindowSurface::beginPaint(const QRegion &)
glClearColor(0.0, 0.0, 0.0, 0.0);
glClear(clearFlags);
}
-
- d_ptr->did_paint = true;
}
void QGLWindowSurface::endPaint(const QRegion &rgn)