Add support for multisampling in QQuickWidget
authorLaszlo Agocs <laszlo.agocs@digia.com>
Wed, 4 Jun 2014 13:05:00 +0000 (15:05 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 6 Jun 2014 10:25:43 +0000 (12:25 +0200)
commit2e4a40a6ccf466802ea6b3a1cbbd85869228e3fc
treea5fc7fc8564df7759155bfb07bf606c66e467e60
parent0d3dc8c9e4ee07895c952d48faa55cf4f4b00b7b
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>
examples/quick/quickwidgets/quickwidget/main.cpp
src/quickwidgets/qquickwidget.cpp
src/quickwidgets/qquickwidget_p.h