[macOS] Move Wno-deprecated-declarations to pragmas in the OpenGL related files, update some deprecated code.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user