add glGetError check