Fixed gropengl mutex leak
Cleanup of debug