GLEW instructions failes on multithread
Hello,
I have multithreaded OpenGL usage (there is no other way). But there is no problem with it. But in each thread I have load .dll with GLEW instructions. The problem was in usage of those dll functions. When I try to use some of the GLEW intstructions I have exception. Strange because I have call glewInit() after creating OpenGL context. Ok, now I call glewInit() each time. It seems to work now. But this is not a good way (as I think). Can it be solved some how? Or if I choose multithread way - there is no another way?
Added:
glewInit() does not help. I have exception again.
Thanks.
[Edited by - Kiranatus on December 22, 2009 2:59:30 AM]
It crashes at different moments of time. I use global crit. section to be sure that only one context active at a time. However it crashes. Crashes and crashes. What I have missed?
Did you recompile GLEW?
http://glew.sourceforge.net/advanced.html
Multiple Rendering Contexts (GLEW MX)
explains that shit.
http://glew.sourceforge.net/advanced.html
Multiple Rendering Contexts (GLEW MX)
explains that shit.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement