summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Arne Petersen <jan.petersen@kdab.com>2015-01-13 11:23:10 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-05-02 14:32:14 +0000
commitb999aaaf4e3f4069fb57e016cfa7461eb15e0992 (patch)
tree05e1a9dda279bb31480284de0dcd27ba64f2a4a7
parenta6fb18f1865aff8b96dfba1e341019371b5fa9f2 (diff)
Create QOpenGLContext with the correct screenv5.5.0-beta1
Change-Id: I91169e719ac97b8e32805e08d6a1f43caa897f73 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
-rw-r--r--src/quick/scenegraph/qsgthreadedrenderloop.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp
index 26a0e78254..f9f973fe2a 100644
--- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp
+++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp
@@ -906,6 +906,7 @@ void QSGThreadedRenderLoop::handleExposure(QQuickWindow *window)
if (qt_gl_global_share_context())
w->thread->gl->setShareContext(qt_gl_global_share_context());
w->thread->gl->setFormat(w->window->requestedFormat());
+ w->thread->gl->setScreen(w->window->screen());
if (!w->thread->gl->create()) {
const bool isEs = w->thread->gl->isOpenGLES();
delete w->thread->gl;