st/oxr: EGL extension requires OpenGL enabled

This commit is contained in:
Ryan Pavlik 2019-12-03 11:54:05 -06:00 committed by Jakob Bornecrantz
parent 51c3240c23
commit e49fdd8523
2 changed files with 3 additions and 2 deletions

View file

@ -15,7 +15,7 @@ EXTENSIONS = (
['XR_KHR_opengl_enable', 'XR_USE_GRAPHICS_API_OPENGL'],
['XR_KHR_opengl_es_enable', 'XR_USE_GRAPHICS_API_OPENGL_ES'],
['XR_KHR_vulkan_enable', 'XR_USE_GRAPHICS_API_VULKAN'],
['XR_MND_egl_enable', 'XR_USE_PLATFORM_EGL'],
['XR_MND_egl_enable', 'XR_USE_PLATFORM_EGL', 'XR_USE_GRAPHICS_API_OPENGL'],
['XR_MND_headless'],
)

View file

@ -81,7 +81,8 @@
/*
* XR_MND_egl_enable
*/
#if defined(XR_MND_egl_enable) && defined(XR_USE_PLATFORM_EGL)
#if defined(XR_MND_egl_enable) && defined(XR_USE_PLATFORM_EGL) && \
defined(XR_USE_GRAPHICS_API_OPENGL)
#define OXR_HAVE_MND_egl_enable
#define OXR_EXTENSION_SUPPORT_MND_egl_enable(_) \
_(MND_egl_enable, MND_EGL_ENABLE)