Commit d2f44909 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Fixed wrong order of locking OpenGL context and initing GLEW in CampVisApplication::init().

parent 0ac65c4f
......@@ -92,9 +92,9 @@ namespace campvis {
// create a local OpenGL context and init GL
_localContext = new QtThreadedCanvas("", tgt::ivec2(16, 16));
tgt::GlContextManager::getRef().registerContextAndInitGlew(_localContext);
tgt::GLContextScopedLock lock(_localContext);
tgt::GlContextManager::getRef().registerContextAndInitGlew(_localContext);
tgt::initGL(featureset);
ShdrMgr.setDefaultGlslVersion("330");
......
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