Made OpenGL error logging configurable.