Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CAMP
campvis-public
Commits
d2f44909
Commit
d2f44909
authored
Apr 24, 2014
by
Christian Schulte zu Berge
Browse files
Fixed wrong order of locking OpenGL context and initing GLEW in CampVisApplication::init().
parent
0ac65c4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
application/campvisapplication.cpp
View file @
d2f44909
...
...
@@ -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"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment