Temporarily fixed last OpenGL GL_INVALID_OPERATION error.