diff options
author | Paul Olav Tvete <paul.tvete@digia.com> | 2014-03-06 14:25:08 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-07 12:20:24 +0100 |
commit | 9fc17c08e5635cf112c6194e6c24af2a9c7caf00 (patch) | |
tree | 94dd2471df3d878e0237e2733ae0a726163f19c9 /src/quickwidgets/qquickwidget_p.h | |
parent | 6e5caf0431f63a8b67b4d787ba02d8684dbaa856 (diff) |
QQuickWidget: make sure to use the proper GL format
We cannot be sure that the toplevel widget has the correct GL format,
and we do not want to force depth and stencil buffers on surfaces that
do not need them. Therefore, we have to create an offscreen surface for
the FBO.
Change-Id: I7dfc3a6f84bf79125f3ab811a204972e95e245a3
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/quickwidgets/qquickwidget_p.h')
-rw-r--r-- | src/quickwidgets/qquickwidget_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quickwidgets/qquickwidget_p.h b/src/quickwidgets/qquickwidget_p.h index 01f7c3ac91..c75e5f08ad 100644 --- a/src/quickwidgets/qquickwidget_p.h +++ b/src/quickwidgets/qquickwidget_p.h @@ -63,6 +63,7 @@ class QQuickItem; class QQmlComponent; class QQuickRenderControl; class QOpenGLContext; +class QOffscreenSurface; class QQuickWidgetPrivate : public QWidgetPrivate, @@ -99,6 +100,7 @@ public: QQmlComponent *component; QBasicTimer resizetimer; QQuickWindow *offscreenWindow; + QOffscreenSurface *offscreenSurface; QQuickRenderControl *renderControl; QOpenGLFramebufferObject *fbo; QOpenGLContext *context; |