The open source OpenXR runtime

c/client: Fix breakage after EGL changes

The EGL spec only allows this flag to be passed in on OpenGL ES contexts,
so check if the API is OpenGL ES when reading back this flag.

Closes #530

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2511>

+2 -1
+2 -1
src/xrt/compositor/client/comp_egl_client.c
··· 223 223 } 224 224 225 225 EGLint strategy; 226 - if (eglQueryContext(display, app_context, EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT, &strategy)) { 226 + if (api_type == EGL_OPENGL_ES_API && 227 + eglQueryContext(display, app_context, EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT, &strategy)) { 227 228 attrs[attrc++] = EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT; 228 229 attrs[attrc++] = strategy; 229 230 }