Change to a constructor that exists in qt 5.9

This commit is contained in:
James Rowe 2019-09-16 23:28:41 -06:00
parent 3b14bb44b9
commit db94c017bf
1 changed files with 2 additions and 1 deletions

View File

@ -310,9 +310,10 @@ std::unique_ptr<Frontend::GraphicsContext> GRenderWindow::CreateSharedContext()
GGLContext::GGLContext(QOpenGLContext* shared_context)
: context(new QOpenGLContext(shared_context->parent())),
surface(new QOffscreenSurface(nullptr, shared_context->parent())) {
surface(new QOffscreenSurface(nullptr)) {
context->setShareContext(shared_context);
context->create();
surface->setParent(shared_context->parent());
surface->setFormat(shared_context->format());
surface->create();
}