Protect GL_SILENCE_DEPRECATION from re-definition.

This commit is contained in:
Rob McDonald 2023-03-15 10:45:53 -07:00 committed by Albrecht Schlosser
parent 0f41797b7a
commit 09b7b4719d
1 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,9 @@
# endif
# ifdef __APPLE__ // PORTME: OpenGL path abstraction
# ifndef GL_SILENCE_DEPRECATION
# define GL_SILENCE_DEPRECATION 1
# endif
# if !defined(__gl3_h_) // make sure OpenGL/gl3.h was not included before
# include <OpenGL/gl.h>
# endif