diff options
author | Laszlo Agocs <laszlo.agocs@digia.com> | 2013-12-05 14:53:27 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-05 21:54:29 +0100 |
commit | f95fdacb3a12e4f0d37d3c32b34326f2bd1536de (patch) | |
tree | 136bca87a822ad5bc500b8b832815fc4a9ef8fdb | |
parent | 9baa5dac228607c91685bbd74b3f5f069cb374bf (diff) |
Set the format for the fallback offscreen surfacev5.2.0
Ie76dbe5fd4ab935db3da34f3ff63d217a3ba5013 fails to set the format
for the QOffscreenSurface, resulting in BAD_MATCH failures when trying
to make it current.
Task-number: QTBUG-35410
Change-Id: I1d420556fad4df96a1893cb3513e398eeb6e71aa
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
-rw-r--r-- | src/quick/scenegraph/qsgthreadedrenderloop.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp index d6a3881086..47c2d36d2c 100644 --- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp +++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp @@ -1047,6 +1047,7 @@ void QSGThreadedRenderLoop::releaseResources(QQuickWindow *window, bool inDestru if (!window->handle()) { QSG_GUI_DEBUG(w->window, " - using fallback surface"); fallback = new QOffscreenSurface(); + fallback->setFormat(window->requestedFormat()); fallback->create(); } |