Replacing CWorkerThread::CheckOpenGLError with a macro.