From b999aaaf4e3f4069fb57e016cfa7461eb15e0992 Mon Sep 17 00:00:00 2001 From: Jan Arne Petersen Date: Tue, 13 Jan 2015 11:23:10 +0100 Subject: Create QOpenGLContext with the correct screen Change-Id: I91169e719ac97b8e32805e08d6a1f43caa897f73 Reviewed-by: Gunnar Sletta --- src/quick/scenegraph/qsgthreadedrenderloop.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3