In OpenGL, the default setting is to report errors automatically when they occur. They can either be queried using glGetError or via an error callback set with glDebugMessageCallback.
Doesn't this approach use unnecessary resources when no errors are actually thrown?
To save resources, I'd like to know how to disable this mechanism. I am thinking to disable it in a "release" version of my application, where no errors are expected to be thrown.