Force GL functions to check errors unless ogl-dont-check-errors is set.