summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-08-28 11:41:57 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-08-28 12:25:47 (GMT)
commit610404399bfe2df7183826d9605ad916404ec834 (patch)
tree8812673c62ae984fb2bc9da1b5bac90a0b11a4b0
parent66fc16b5976153a8697512ab25922b64cd7b80c9 (diff)
downloadQt-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.cpp1
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);