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

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