diff options
author | Trond Kjernåsen <trond@trolltech.com> | 2010-01-07 15:14:07 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond@trolltech.com> | 2010-01-07 15:16:06 (GMT) |
commit | f8e08419c78e94d32273c8b039dd48dc9d5e3433 (patch) | |
tree | eccd6c518a81c696cc02bc738321a3b2d3f44a64 /src/opengl | |
parent | 6026436f0de6020252410c021e0745a22599b159 (diff) | |
download | Qt-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.cpp | 3 |
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() |