Silence warnings on MacOS about OpenGL deprecation
Apple has apparently deprecated OpenGL and replaced it with their Metal API. It still works for now though.
This commit is contained in:
parent
d5b8e4928c
commit
6faa2188ed
|
@ -33,6 +33,9 @@
|
|||
#include <wx/wx.h>
|
||||
|
||||
#ifdef __APPLE__
|
||||
// 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
|
||||
#include <OpenGL/gl.h>
|
||||
#include <OpenGL/glu.h>
|
||||
#else
|
||||
|
|
|
@ -26,6 +26,12 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
// Apple, in their infinite wisdom, has decided to mark OpenGL as deprecated.
|
||||
// Luckily we can silence warnings about its deprecation.
|
||||
#ifdef __APPLE__
|
||||
#define GL_SILENCE_DEPRECATION 1
|
||||
#endif
|
||||
|
||||
#include <gal/opengl/opengl_gal.h>
|
||||
#include <gal/opengl/utils.h>
|
||||
#include <gal/definitions.h>
|
||||
|
|
|
@ -35,6 +35,11 @@
|
|||
#ifndef VRML_LAYER_H
|
||||
#define VRML_LAYER_H
|
||||
|
||||
// Apple, in their infinite wisdom, has decided to mark OpenGL as deprecated.
|
||||
// Luckily we can silence warnings about its deprecation.
|
||||
#ifdef __APPLE__
|
||||
#define GL_SILENCE_DEPRECATION 1
|
||||
#endif
|
||||
|
||||
#include <wx/glcanvas.h> // CALLBACK definition, needed on Windows
|
||||
// alse needed on OSX to define __DARWIN__
|
||||
|
|
Loading…
Reference in New Issue