More OpenGL error handling.