Implement full OpenGL error checking through gl_check() macro
Add another gl_check() which does nothing in release builds