Fix an OpenGL Stack Overack overflow