Removed old UI function.
Converted CheckOpenGLError calls over to macro which generates filename and line numbers when an error occurs.