corrected conditional compile of OpenXR with/without opengl3 driver

This commit is contained in:
derammo 2022-05-11 11:25:55 -04:00
parent b5689309f6
commit 0571148a4b

View File

@ -1001,7 +1001,7 @@ bool OpenXRAPI::initialize(const String &p_rendering_driver) {
ERR_FAIL_V(false); ERR_FAIL_V(false);
#endif #endif
} else if (p_rendering_driver == "opengl3") { } else if (p_rendering_driver == "opengl3") {
#ifdef OPENGL3_ENABLED #ifdef GLES3_ENABLED
// graphics_extension = memnew(OpenXROpenGLExtension(this)); // graphics_extension = memnew(OpenXROpenGLExtension(this));
// register_extension_wrapper(graphics_extension); // register_extension_wrapper(graphics_extension);
ERR_FAIL_V_MSG(false, "OpenXR: OpenGL is not supported at this time."); ERR_FAIL_V_MSG(false, "OpenXR: OpenGL is not supported at this time.");