ref #12 replace glError with inline function