summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond.kjernasen@nokia.com>2010-09-20 11:53:27 (GMT)
committerTrond Kjernåsen <trond.kjernasen@nokia.com>2010-09-20 11:56:05 (GMT)
commitde808f3c91afaecfc9d7a9a7ea6ff7533dfd1e1b (patch)
treec9afbaac140849c18318cb5e30ee8771d67574a9 /examples
parentbbf11b714f6430fea2a35dc370c3530afcddf8ab (diff)
downloadQt-de808f3c91afaecfc9d7a9a7ea6ff7533dfd1e1b.zip
Qt-de808f3c91afaecfc9d7a9a7ea6ff7533dfd1e1b.tar.gz
Qt-de808f3c91afaecfc9d7a9a7ea6ff7533dfd1e1b.tar.bz2
Support multisampled pbuffers under Windows.
Multisampled pbuffers don't work in conjunction with the render_texture extension. Now we turn off the render_texture extension if a multi- sampled format is requested. Task-number: QTBUG-13503 Reviewed-by: Samuel
Diffstat (limited to 'examples')
-rw-r--r--examples/opengl/pbuffers/glwidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/opengl/pbuffers/glwidget.cpp b/examples/opengl/pbuffers/glwidget.cpp
index 6f4f060..c57a510 100644
--- a/examples/opengl/pbuffers/glwidget.cpp
+++ b/examples/opengl/pbuffers/glwidget.cpp
@@ -62,7 +62,9 @@ GLWidget::GLWidget(QWidget *parent)
, cube(0)
{
// create the pbuffer
- pbuffer = new QGLPixelBuffer(QSize(512, 512), format(), this);
+ QGLFormat pbufferFormat = format();
+ pbufferFormat.setSampleBuffers(false);
+ pbuffer = new QGLPixelBuffer(QSize(512, 512), pbufferFormat, this);
setWindowTitle(tr("OpenGL pbuffers"));
initializeGeometry();
}