mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Disable OpenGL deprecation warnings
This was likely transitively included from another header from after clang-format rearranged some headers, it was no longer present.
This commit is contained in:
parent
87c4213ac6
commit
e2f0feaefc
@ -35,6 +35,15 @@
|
||||
|
||||
#include <glad/gl.h>
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
SFML_DECLARE_OBJC_CLASS(EAGLContext);
|
||||
SFML_DECLARE_OBJC_CLASS(SFView);
|
||||
@ -169,4 +178,12 @@ private:
|
||||
|
||||
} // namespace sf
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // SFML_EAGLCONTEXT_HPP
|
||||
|
Loading…
Reference in New Issue
Block a user