OpenXR adding MNDX EGL support
#define XR_USE_GRAPHICS_API_OPENGL_ES
#elif defined(SK_OS_LINUX)
#include <time.h>
+
+ #if defined(SKG_LINUX_GLX)
#define XR_USE_PLATFORM_XLIB
+ #define XR_USE_GRAPHICS_API_OPENGL
+ #elif defined(SKG_LINUX_EGL)
+ #define XR_USE_PLATFORM_EGL
+ #define XR_USE_GRAPHICS_API_OPENGL_ES
+ #endif
#define XR_USE_TIMESPEC
#define XR_TIME_EXTENSION XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME
- #define XR_USE_GRAPHICS_API_OPENGL
#elif defined(SK_OS_WEB)
#define XR_USE_TIMESPEC
#define XR_TIME_EXTENSION XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME
#define XrGraphicsBinding XrGraphicsBindingOpenGLESAndroidKHR
#define XR_TYPE_GRAPHICS_BINDING XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR
+#elif defined(SK_OS_LINUX)
+
+#define XrGraphicsBinding XrGraphicsBindingEGLMNDX
+#define XR_TYPE_GRAPHICS_BINDING XR_TYPE_GRAPHICS_BINDING_EGL_MNDX
+
#endif
#endif
