diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2011-01-26 12:03:27 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-01-26 13:16:11 (GMT) |
commit | de5b07606c1fbc2330efc6915ad7d1ac866752f2 (patch) | |
tree | dad25c57f626b4fb98dac602db3f7629d856fc2d /src/opengl | |
parent | d36a3a6ebc17935371cfca2a9f22dcd683205b5b (diff) | |
download | Qt-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.cpp | 4 |
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) |