add local glGetError handling