Commit 3fc527d1 authored by Martin Schultz's avatar Martin Schultz

make the global context current from the beginning

parent 5d774d2b
......@@ -537,10 +537,8 @@ int main(int argc, char **argv)
QOffscreenSurface *surface = new QOffscreenSurface();
surface->create();
QOpenGLContext context;
context.setScreen(screen);
context.create();
context.makeCurrent(surface);
//make the globally shared OpenGLContext current
QOpenGLContext::globalShareContext()->makeCurrent(surface);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment