Commit 9a832d16 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'fixBadContextInit' into 'master'

make the global context current from the beginning

See merge request !76
parents 5d774d2b 3fc527d1
......@@ -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