by to3m · 11y ago · 0 comments
Also look up GL_ARB_debug_output - https://www.opengl.org/registry/specs/ARB/debug_output.txt. I don't remember this ever telling me anything terribly useful for debugging, but I did get a couple of perf hints from it... anyway, it's vendor-specific, so on OS X, maybe it will help.
(BTW - if you ever end up using Direct3D on Windows, be sure to activate the debug runtime. Compare and contrast.)
Apparently Apple is unaware of this technique...
There are exceptions to this general rule, and sometimes you do need to use glGetError in the normal run of things, and take action based on the result. But they are very much exceptions.