moved opengl error processing to the OGLWindow class

actually does new and old style now depending on hardware support