glGetError is now called only when the DEBUG compile flag is set