The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

c/client: use the same reset notification strategy as the app context

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

+7 -1
+7 -1
src/xrt/compositor/client/comp_egl_client.c
··· 209 209 eglBindAPI(api_type); 210 210 211 211 size_t attrc = 0; 212 - EGLint attrs[7] = {0}; 212 + EGLint attrs[9] = {0}; 213 213 214 214 attrs[attrc++] = EGL_CONTEXT_MAJOR_VERSION; 215 215 attrs[attrc++] = 3; ··· 220 220 if (api_type == EGL_OPENGL_API) { 221 221 attrs[attrc++] = EGL_CONTEXT_OPENGL_PROFILE_MASK; 222 222 attrs[attrc++] = EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT; 223 + } 224 + 225 + EGLint strategy; 226 + if (eglQueryContext(display, app_context, EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT, &strategy)) { 227 + attrs[attrc++] = EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT; 228 + attrs[attrc++] = strategy; 223 229 } 224 230 225 231 attrs[attrc++] = EGL_NONE;