Fix a regression added by commit id b2a594a0a8053af7cfe0c7ae408b5ecbd14e32a3:
state->need_get_error needs to be true instead of false to call the real glGetError implementation