diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-17 10:12:44 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-17 10:30:15 +0100 |
commit | 0a7579b161834d052e89e9319ed248a04554e85d (patch) | |
tree | efbd1ce1c0640ac685667155e57a0354e58e9395 /modules/openxr/extensions/openxr_opengl_extension.h | |
parent | 107f2961ccfac179af7682eb5f6e7ea91e80040c (diff) | |
download | redot-engine-0a7579b161834d052e89e9319ed248a04554e85d.tar.gz |
Fix `#if *_ENABLED` inconsistencies, should check if defined
Co-authored-by: Caroline Joy Bell <halotroop2288@proton.me>
Diffstat (limited to 'modules/openxr/extensions/openxr_opengl_extension.h')
-rw-r--r-- | modules/openxr/extensions/openxr_opengl_extension.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/openxr/extensions/openxr_opengl_extension.h b/modules/openxr/extensions/openxr_opengl_extension.h index 3b0aa0bce9..5f529829a7 100644 --- a/modules/openxr/extensions/openxr_opengl_extension.h +++ b/modules/openxr/extensions/openxr_opengl_extension.h @@ -39,7 +39,7 @@ #include "core/templates/vector.h" -// always include this as late as possible +// Always include this as late as possible. #include "../openxr_platform_inc.h" class OpenXROpenGLExtension : public OpenXRGraphicsExtensionWrapper { @@ -65,9 +65,9 @@ private: #ifdef WIN32 static XrGraphicsBindingOpenGLWin32KHR graphics_binding_gl; -#elif ANDROID_ENABLED +#elif defined(ANDROID_ENABLED) static XrGraphicsBindingOpenGLESAndroidKHR graphics_binding_gl; -#else +#else // Linux/X11 static XrGraphicsBindingOpenGLXlibKHR graphics_binding_gl; #endif |