Improve the checkgl macro (glGetError is now called after the gl* function instead before)