diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-09-25 15:12:42 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-10-06 13:36:18 (GMT) |
commit | e8a3b49d6d42b213fd4fd55837f6180935a8a603 (patch) | |
tree | aefa6ba0627e222ba9a5f888389fae291db42771 /src/opengl | |
parent | cbc2508fc8cb0f16a061f778f777f8363640fcc8 (diff) | |
download | Qt-e8a3b49d6d42b213fd4fd55837f6180935a8a603.zip Qt-e8a3b49d6d42b213fd4fd55837f6180935a8a603.tar.gz Qt-e8a3b49d6d42b213fd4fd55837f6180935a8a603.tar.bz2 |
Fixed missing stencil buffer clear when scissor testing is disabled.
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index 7cd5aa4..242d02d 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -1645,7 +1645,9 @@ void QGL2PaintEngineExPrivate::updateDepthScissorTest() else glDisable(GL_DEPTH_TEST); -#ifndef QT_GL_NO_SCISSOR_TEST +#ifdef QT_GL_NO_SCISSOR_TEST + currentScissorBounds = QRect(0, 0, width, height); +#else QRect bounds = q->state()->rectangleClip; if (!q->state()->clipEnabled) { if (use_system_clip) |