diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-20 11:31:07 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-20 11:31:07 +0200 |
commit | aecfd92ea81f0c3024cff56139c908ce97cdc115 (patch) | |
tree | 6099c258f6c14277bda4c992830b9f2901d0c71e /platform/macos/gl_manager_macos_legacy.h | |
parent | 28a24639c3c6a95b5b9828f5f02bf0dc2f5ce54b (diff) | |
download | redot-engine-aecfd92ea81f0c3024cff56139c908ce97cdc115.tar.gz |
[macOS] Move `Wno-deprecated-declarations` to pragmas in the OpenGL related files, update some deprecated code.
Diffstat (limited to 'platform/macos/gl_manager_macos_legacy.h')
-rw-r--r-- | platform/macos/gl_manager_macos_legacy.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/macos/gl_manager_macos_legacy.h b/platform/macos/gl_manager_macos_legacy.h index 663bc5ea7b..c33b803d81 100644 --- a/platform/macos/gl_manager_macos_legacy.h +++ b/platform/macos/gl_manager_macos_legacy.h @@ -33,6 +33,9 @@ #if defined(MACOS_ENABLED) && defined(GLES3_ENABLED) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" // OpenGL is deprecated in macOS 10.14 + #include "core/error/error_list.h" #include "core/os/os.h" #include "core/templates/local_vector.h" @@ -95,6 +98,8 @@ public: ~GLManager_MacOS(); }; +#pragma clang diagnostic push + #endif // MACOS_ENABLED && GLES3_ENABLED #endif // GL_MANAGER_MACOS_LEGACY_H |