Order OpenXR extension adding
@@ -205,10 +205,6 @@ static bool openxr_init(float supersample, float offset, uint32_t msaa) {
enabledExtensionNames[enabledExtensionCount++] = XR_KHR_ANDROID_CREATE_INSTANCE_EXTENSION_NAME;
#endif
-#ifdef LOVR_LINUX_EGL
- enabledExtensionNames[enabledExtensionCount++] = "XR_MNDX_egl_enable";
-#endif
-
enabledExtensionNames[enabledExtensionCount++] = GRAPHICS_EXTENSION;
if (hasExtension(extensions, extensionCount, XR_EXT_HAND_TRACKING_EXTENSION_NAME)) {
@@ -216,6 +212,10 @@ static bool openxr_init(float supersample, float offset, uint32_t msaa) {
state.features.handTracking = true;
}
+#ifdef LOVR_LINUX_EGL
+ enabledExtensionNames[enabledExtensionCount++] = XR_MNDX_EGL_ENABLE_EXTENSION_NAME;
+#endif
+
free(extensions);
XrInstanceCreateInfo info = {
