Change-Id: Ife582717b4abc657120b98366fe6e6dc5efc7586
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
// Pick up the surface format from one of them
gl->setFormat(win->requestedFormat());
gl->create();
- gl->makeCurrent(win);
+ if (!gl->makeCurrent(win))
+ qWarning("QQuickCanvas: makeCurrent() failed...");
Q_ASSERT(!sg->isReady());
sg->initialize(gl);
gl = new QOpenGLContext();
gl->setFormat(canvas->requestedFormat());
gl->create();
- gl->makeCurrent(canvas);
+ if (!gl->makeCurrent(canvas))
+ qWarning("QQuickCanvas: makeCurrent() failed...");
sg->initialize(gl);
} else {
gl->makeCurrent(canvas);