Silence a warning on macOS
This commit is contained in:
parent
7277ae93fa
commit
18833ad271
|
@ -31,9 +31,11 @@
|
||||||
#define OPENGL_INCLUDES_H
|
#define OPENGL_INCLUDES_H
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
#ifndef GL_SILENCE_DEPRECATION
|
||||||
// Apple, in their infinite wisdom, has decided to mark OpenGL as deprecated.
|
// Apple, in their infinite wisdom, has decided to mark OpenGL as deprecated.
|
||||||
// Luckily we can silence warnings about its deprecation.
|
// Luckily we can silence warnings about its deprecation.
|
||||||
#define GL_SILENCE_DEPRECATION 1
|
#define GL_SILENCE_DEPRECATION 1
|
||||||
|
#endif
|
||||||
#include <OpenGL/gl.h>
|
#include <OpenGL/gl.h>
|
||||||
#include <OpenGL/glu.h>
|
#include <OpenGL/glu.h>
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue