move gl_assert of glapi below opengl_api call