Fix test compilation
Only call glGetError once per frame