thread->moveContextToThread(context);
q->setSurfaceType(QWindow::OpenGLSurface);
+ q->setFormat(context->defaultSurfaceFormat());
}
void QSGCanvasPrivate::transformTouchPoints(QList<QTouchEvent::TouchPoint> &touchPoints, const QTransform &transform)
void QSGCanvasRenderLoop::createGLContext()
{
gl = new QOpenGLContext();
- gl->setFormat(renderer->format());
+ gl->setFormat(d->context->defaultSurfaceFormat());
gl->create();
}