opengl context creation - error handling