diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-08-28 11:41:57 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-08-28 12:25:47 (GMT) |
commit | 610404399bfe2df7183826d9605ad916404ec834 (patch) | |
tree | 8812673c62ae984fb2bc9da1b5bac90a0b11a4b0 | |
parent | 66fc16b5976153a8697512ab25922b64cd7b80c9 (diff) | |
download | Qt-610404399bfe2df7183826d9605ad916404ec834.zip Qt-610404399bfe2df7183826d9605ad916404ec834.tar.gz Qt-610404399bfe2df7183826d9605ad916404ec834.tar.bz2 |
Ensured that the framebufferobject example has a stencil buffer.
The stencil buffer is used for rasterization in the GL 2 paint engine.
Reviewed-by: Trond
-rw-r--r-- | examples/opengl/framebufferobject/glwidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/opengl/framebufferobject/glwidget.cpp b/examples/opengl/framebufferobject/glwidget.cpp index 99a8ffd..9e0b6f3 100644 --- a/examples/opengl/framebufferobject/glwidget.cpp +++ b/examples/opengl/framebufferobject/glwidget.cpp @@ -57,6 +57,7 @@ GLWidget::GLWidget(QWidget *parent) if (QGLFramebufferObject::hasOpenGLFramebufferBlit()) { QGLFramebufferObjectFormat format; format.setSamples(4); + format.setAttachment(QGLFramebufferObject::CombinedDepthStencil); render_fbo = new QGLFramebufferObject(512, 512, format); texture_fbo = new QGLFramebufferObject(512, 512); |