openglbook.com issue #26: fix ExitOnGLError impl
See https://github.com/openglbook/openglbook.com/issues/26 for details.