Silence a warning on macOS

This commit is contained in:
Jon Evans 2023-11-16 09:09:24 -05:00
parent 7277ae93fa
commit 18833ad271
1 changed files with 2 additions and 0 deletions

View File

@ -31,9 +31,11 @@
#define OPENGL_INCLUDES_H
#ifdef __APPLE__
#ifndef GL_SILENCE_DEPRECATION
// Apple, in their infinite wisdom, has decided to mark OpenGL as deprecated.
// Luckily we can silence warnings about its deprecation.
#define GL_SILENCE_DEPRECATION 1
#endif
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#else