summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2010-01-07 15:14:07 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2010-01-07 15:16:06 (GMT)
commitf8e08419c78e94d32273c8b039dd48dc9d5e3433 (patch)
treeeccd6c518a81c696cc02bc738321a3b2d3f44a64 /src/opengl
parent6026436f0de6020252410c021e0745a22599b159 (diff)
downloadQt-f8e08419c78e94d32273c8b039dd48dc9d5e3433.zip
Qt-f8e08419c78e94d32273c8b039dd48dc9d5e3433.tar.gz
Qt-f8e08419c78e94d32273c8b039dd48dc9d5e3433.tar.bz2
Reset the GL stencil mask, op and function in resetGLState().
Task-number: QTBUG-7203 Reviewed-by: Samuel
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
index 5901601..ff096c2 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
@@ -559,6 +559,9 @@ void QGL2PaintEngineExPrivate::resetGLState()
glDepthMask(true);
glDepthFunc(GL_LESS);
glClearDepth(1);
+ glStencilMask(0xff);
+ glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
+ glStencilFunc(GL_ALWAYS, 0, 0xff);
}
void QGL2PaintEngineEx::endNativePainting()