Skip to content

Commit

Permalink
Disable spurious opengl deprecations warning on mac.
Browse files Browse the repository at this point in the history
Metal API had been prioritised thus the deprecation.
  • Loading branch information
devnexen committed May 20, 2020
1 parent 4fbe5ee commit 573218c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Imports/OpenGL.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

// TODO: support other platform
#if __APPLE__
#define GL_SILENCE_DEPRECATION 1
#include <OpenGL/gl3.h>
#include <OpenGL/gl3ext.h>
#else
Expand All @@ -20,4 +21,4 @@
# define GL_ANY_SAMPLES_PASSED 0x8C2F
#endif

#endif
#endif

0 comments on commit 573218c

Please sign in to comment.