programmatical breakpoint on OpenGL errors