FR: Make JUCE_CHECK_OPENGL_ERROR and clearGLError() public

To keep with the conventions, make the latter a macro: JUCE_CLEAR_GL_ERROR.

1 Like

I just realised OpenGLHelpers::resetErrorState() exists…

Might be worthwhile DRYing the framework to use that - it helps get a better sense of the overall implementation.