[macOS] Move Wno-deprecated-declarations to pragmas in the OpenGL related files, update some deprecated code.

This commit is contained in:
bruvzg
2023-01-20 11:31:07 +02:00
parent 28a24639c3
commit aecfd92ea8
6 changed files with 17 additions and 3 deletions
+5
View File
@@ -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