The open source OpenXR runtime
0
fork

Configure Feed

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

c/client: Restore context on unsupported API and better debug printing

+6 -1
+6 -1
src/xrt/compositor/client/comp_egl_client.c
··· 305 305 switch (egl_client_type) { 306 306 case EGL_OPENGL_API: 307 307 #if defined(XRT_HAVE_OPENGL) 308 + EGL_DEBUG("Loading GL functions"); 308 309 gladLoadGL(get_gl_procaddr); 309 310 break; 310 311 #else ··· 315 316 316 317 case EGL_OPENGL_ES_API: 317 318 #if defined(XRT_HAVE_OPENGLES) 319 + EGL_DEBUG("Loading GLES2 functions"); 318 320 gladLoadGLES2(get_gl_procaddr); 319 321 break; 320 322 #else ··· 322 324 restore_context(&old); 323 325 return XRT_ERROR_OPENGL; 324 326 #endif 325 - default: EGL_ERROR("Unsupported EGL client type"); return XRT_ERROR_OPENGL; 327 + default: 328 + EGL_ERROR("Unsupported EGL client type: 0x%x", egl_client_type); 329 + restore_context(&old); 330 + return XRT_ERROR_OPENGL; 326 331 } 327 332 328 333 struct client_egl_compositor *ceglc = U_TYPED_CALLOC(struct client_egl_compositor);