(Part 4): fixed the glCheckErrors code to use macros correctly (thanks to Chris Ross)