summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
diff options
context:
space:
mode:
authorJani Hautakangas <jani.hautakangas@nokia.com>2011-10-19 06:39:22 (GMT)
committerJani Hautakangas <jani.hautakangas@nokia.com>2011-10-19 09:45:53 (GMT)
commit20542f9546637bd649c928226249be0ffc91841b (patch)
tree9eccbe781a22a4cc7e905111eb1dcdfccec98e29 /src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
parentb9a3d4bf7827aa631995d47233d47583917a5a7f (diff)
downloadQt-20542f9546637bd649c928226249be0ffc91841b.zip
Qt-20542f9546637bd649c928226249be0ffc91841b.tar.gz
Qt-20542f9546637bd649c928226249be0ffc91841b.tar.bz2
Workaround to VideoCore III scissor bug.
Some versions of VideoCore III drivers seem to pollute and use stencil buffer when using glScissors. Workaround is to clear stencil buffer before disabling scissoring. Task-number: QT-5308 Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
index 047d589..999a074 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
@@ -2059,6 +2059,8 @@ void QGL2PaintEngineExPrivate::updateClipScissorTest()
currentScissorBounds = bounds;
if (bounds == QRect(0, 0, width, height)) {
+ if (ctx->d_func()->workaround_brokenScissor)
+ clearClip(0);
glDisable(GL_SCISSOR_TEST);
} else {
glEnable(GL_SCISSOR_TEST);