diff options
author | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-06-04 15:05:00 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-06-06 12:25:43 +0200 |
commit | 2e4a40a6ccf466802ea6b3a1cbbd85869228e3fc (patch) | |
tree | a5fc7fc8564df7759155bfb07bf606c66e467e60 /src/quickwidgets/qquickwidget_p.h | |
parent | 0d3dc8c9e4ee07895c952d48faa55cf4f4b00b7b (diff) |
Add support for multisampling in QQuickWidget
Use a multisampled fbo when the requested format has samples > 0.
Resolving happens after each rendering of the scene.
The blit to the temporary non-multisampled fbo could be avoided,
in theory, by sending the fbo instead of the texture id down the
stack and performing a blit directly to fbo #0. This however
involves a number of potential issues, for example due to the
non-sharability of FBOs between contexts. Hence it is left as a
future exercise.
Task-number: QTBUG-39187
Change-Id: Iae98b969bcbc3bb57e6d73288496f5428913c826
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/quickwidgets/qquickwidget_p.h')
-rw-r--r-- | src/quickwidgets/qquickwidget_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quickwidgets/qquickwidget_p.h b/src/quickwidgets/qquickwidget_p.h index d7652432b7..356c34e7f5 100644 --- a/src/quickwidgets/qquickwidget_p.h +++ b/src/quickwidgets/qquickwidget_p.h @@ -107,6 +107,7 @@ public: QOffscreenSurface *offscreenSurface; QQuickRenderControl *renderControl; QOpenGLFramebufferObject *fbo; + QOpenGLFramebufferObject *resolvedFbo; QOpenGLContext *context; QQuickWidget::ResizeMode resizeMode; |