diff options
author | David Boddie <dboddie@trolltech.com> | 2010-05-19 09:33:21 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2010-05-19 09:33:21 (GMT) |
commit | ebe28bdd77ca615c47ebf6b41e34aee0c154fcf9 (patch) | |
tree | a1aa1578f798bae0cc23c32656134628bf5af788 /src/opengl/qglpaintdevice.cpp | |
parent | 109024630cbf577d6f6bcb10ea3ac6272113b79e (diff) | |
parent | 28b894f65c5aba01d5ee80c20f617478faaee7e7 (diff) | |
download | Qt-ebe28bdd77ca615c47ebf6b41e34aee0c154fcf9.zip Qt-ebe28bdd77ca615c47ebf6b41e34aee0c154fcf9.tar.gz Qt-ebe28bdd77ca615c47ebf6b41e34aee0c154fcf9.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7
Diffstat (limited to 'src/opengl/qglpaintdevice.cpp')
-rw-r--r-- | src/opengl/qglpaintdevice.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/opengl/qglpaintdevice.cpp b/src/opengl/qglpaintdevice.cpp index e874e85..e1dcbfd 100644 --- a/src/opengl/qglpaintdevice.cpp +++ b/src/opengl/qglpaintdevice.cpp @@ -175,7 +175,10 @@ void QGLWidgetGLPaintDevice::beginPaint() float alpha = c.alphaF(); glClearColor(c.redF() * alpha, c.greenF() * alpha, c.blueF() * alpha, alpha); } - glClear(GL_COLOR_BUFFER_BIT); + if (context()->d_func()->workaround_needsFullClearOnEveryFrame) + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); + else + glClear(GL_COLOR_BUFFER_BIT); } } |