You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Compile OpenXR into MacOS build
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
#ifdef VULKAN_ENABLED
|
||||
#define XR_USE_GRAPHICS_API_VULKAN
|
||||
#endif
|
||||
#ifdef GLES3_ENABLED
|
||||
#if defined(GLES3_ENABLED) && !defined(MACOS_ENABLED)
|
||||
#ifdef ANDROID_ENABLED
|
||||
#define XR_USE_GRAPHICS_API_OPENGL_ES
|
||||
#include <EGL/egl.h>
|
||||
@@ -72,7 +72,7 @@
|
||||
#include "extensions/openxr_vulkan_extension.h"
|
||||
#endif
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
#if defined(GLES3_ENABLED) && !defined(MACOS_ENABLED)
|
||||
#include "extensions/openxr_opengl_extension.h"
|
||||
#endif
|
||||
|
||||
@@ -1306,7 +1306,7 @@ bool OpenXRAPI::initialize(const String &p_rendering_driver) {
|
||||
ERR_FAIL_V(false);
|
||||
#endif
|
||||
} else if (p_rendering_driver == "opengl3") {
|
||||
#ifdef GLES3_ENABLED
|
||||
#if defined(GLES3_ENABLED) && !defined(MACOS_ENABLED)
|
||||
graphics_extension = memnew(OpenXROpenGLExtension);
|
||||
register_extension_wrapper(graphics_extension);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user