replaced the glGetError debug method with the modern glDebugMessageCallback method