Added GL error checking macro.