Change-Id: I6ad95d05d9874704b038943f7887611315733c89
Reviewed-on: http://codereview.qt.nokia.com/2678
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
if (!guiContext) {
guiContext = new QGuiGLContext();
guiContext->create();
+ guiContext->makeCurrent(renderer);
- glContext = QGLContext::fromGuiGLContext(guiContext);
-
- }
-
- guiContext->makeCurrent(renderer);
-
- if (!d->context->isReady())
d->initializeSceneGraph();
-
+ } else {
+ guiContext->makeCurrent(renderer);
+ }
while (!shouldExit) {
lock();
QSGCanvasRenderThread()
: mutex(QMutex::NonRecursive)
, guiContext(0)
- , glContext(0)
, isGuiBlocked(0)
, isPaintCompleted(false)
, isGuiBlockPending(false)
QSGCanvasPrivate *d;
QGuiGLContext *guiContext;
- QGLContext *glContext;
int isGuiBlocked;
uint isPaintCompleted : 1;