xrt: accept OpenGL ES in oxr_session_populate_egl

This commit is contained in:
Simon Ser 2019-10-30 15:29:57 +01:00
parent 5eacb6f309
commit a8b2370946
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -55,7 +55,8 @@ oxr_session_populate_egl(struct oxr_logger *log,
"eglQueryContext(EGL_CONTEXT_CLIENT_TYPE) failed"); "eglQueryContext(EGL_CONTEXT_CLIENT_TYPE) failed");
} }
if (egl_client_type != EGL_OPENGL_API) { if (egl_client_type != EGL_OPENGL_API &&
egl_client_type != EGL_OPENGL_ES_API) {
return oxr_error(log, XR_ERROR_INITIALIZATION_FAILED, return oxr_error(log, XR_ERROR_INITIALIZATION_FAILED,
"unsupported EGL client type"); "unsupported EGL client type");
} }