diff options
author | Samuel Rødal <samuel.rodal@digia.com> | 2012-09-13 20:50:59 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-27 18:35:55 +0200 |
commit | ccf0669da933e519edcff03698643e906b5935d5 (patch) | |
tree | 7c5d7880f0ef8755aebf9a653eff0a9004330c8c /examples/opengl/pbuffers2/glwidget.cpp | |
parent | 2d70dde68a1af355ae10cd6bd34f44006f16918a (diff) |
Added QGLPixelBuffer implementation using framebuffer objects.
Instead of having QGLPixelBuffer be a unusable stub implementation we
deprecate it and implement it in terms of QOpenGLFramebufferObject.
Framebuffer objects are anyway the recommended replacement for
pixelbuffers in modern OpenGL, as the context switching overhead is
avoided.
Change-Id: Ia220c358ee92813e87981d297c51d84525010322
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/opengl/pbuffers2/glwidget.cpp')
-rw-r--r-- | examples/opengl/pbuffers2/glwidget.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/opengl/pbuffers2/glwidget.cpp b/examples/opengl/pbuffers2/glwidget.cpp index 1fcfdcb533..d8dbe9854c 100644 --- a/examples/opengl/pbuffers2/glwidget.cpp +++ b/examples/opengl/pbuffers2/glwidget.cpp @@ -144,8 +144,6 @@ void GLWidget::draw() pbuffer_painter.end(); glFlush(); - // rendering directly to a texture is not supported on X11 and - // some Windows implementations, unfortunately if (!hasDynamicTextureUpdate) pbuffer->updateDynamicTexture(dynamicTexture); |