From 573218c856073dc6a46d19d51d97ee4fe5cfe948 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 20 May 2020 06:49:57 +0100 Subject: [PATCH] Disable spurious opengl deprecations warning on mac. Metal API had been prioritised thus the deprecation. --- Sources/Imports/OpenGL.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Imports/OpenGL.h b/Sources/Imports/OpenGL.h index d63a5bdd3..cffcbacef 100644 --- a/Sources/Imports/OpenGL.h +++ b/Sources/Imports/OpenGL.h @@ -10,6 +10,7 @@ // TODO: support other platform #if __APPLE__ +#define GL_SILENCE_DEPRECATION 1 #include #include #else @@ -20,4 +21,4 @@ # define GL_ANY_SAMPLES_PASSED 0x8C2F #endif -#endif \ No newline at end of file +#endif