mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-17 12:27:18 +01:00
Change to a constructor that exists in qt 5.9
This commit is contained in:
parent
3b14bb44b9
commit
db94c017bf
@ -310,9 +310,10 @@ std::unique_ptr<Frontend::GraphicsContext> GRenderWindow::CreateSharedContext()
|
|||||||
|
|
||||||
GGLContext::GGLContext(QOpenGLContext* shared_context)
|
GGLContext::GGLContext(QOpenGLContext* shared_context)
|
||||||
: context(new QOpenGLContext(shared_context->parent())),
|
: context(new QOpenGLContext(shared_context->parent())),
|
||||||
surface(new QOffscreenSurface(nullptr, shared_context->parent())) {
|
surface(new QOffscreenSurface(nullptr)) {
|
||||||
context->setShareContext(shared_context);
|
context->setShareContext(shared_context);
|
||||||
context->create();
|
context->create();
|
||||||
|
surface->setParent(shared_context->parent());
|
||||||
surface->setFormat(shared_context->format());
|
surface->setFormat(shared_context->format());
|
||||||
surface->create();
|
surface->create();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user