trying to fix opengl waitcondition
Removed a deadlock