diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-09-20 14:31:31 (GMT) |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-09-20 15:02:30 (GMT) |
commit | 89cbb165600de9a557a8a621dc41b93c2a7a2b52 (patch) | |
tree | 6c330d4d1c7b19def2280aebd3011750e4253b8b /src/opengl/qglframebufferobject.cpp | |
parent | 6ecb1be99ff951f35d7b391d6ffb033da696ca74 (diff) | |
download | Qt-89cbb165600de9a557a8a621dc41b93c2a7a2b52.zip Qt-89cbb165600de9a557a8a621dc41b93c2a7a2b52.tar.gz Qt-89cbb165600de9a557a8a621dc41b93c2a7a2b52.tar.bz2 |
Fixed painter path drawing on FBO without stencil buffer.
Task-number: QTBUG-13450
Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/qglframebufferobject.cpp')
-rw-r--r-- | src/opengl/qglframebufferobject.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opengl/qglframebufferobject.cpp b/src/opengl/qglframebufferobject.cpp index 9b8a3d1..adbba85 100644 --- a/src/opengl/qglframebufferobject.cpp +++ b/src/opengl/qglframebufferobject.cpp @@ -324,6 +324,10 @@ void QGLFBOGLPaintDevice::setFBO(QGLFramebufferObject* f, fboFormat.setStencil(true); } else if (attachment == QGLFramebufferObject::Depth) { fboFormat.setDepth(true); + fboFormat.setStencil(false); + } else { + fboFormat.setDepth(false); + fboFormat.setStencil(false); } GLenum format = f->format().internalTextureFormat(); |