diff --git a/3d-viewer/common_ogl/openGL_includes.h b/3d-viewer/common_ogl/openGL_includes.h index 17c06f1768..a0bc2d4a02 100644 --- a/3d-viewer/common_ogl/openGL_includes.h +++ b/3d-viewer/common_ogl/openGL_includes.h @@ -33,6 +33,9 @@ #include #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 #include #else diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index 85d3ce2a5b..66fff1d010 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -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 #include #include diff --git a/utils/idftools/vrml_layer.h b/utils/idftools/vrml_layer.h index 692d6f1436..a0eaa2db4f 100644 --- a/utils/idftools/vrml_layer.h +++ b/utils/idftools/vrml_layer.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 // CALLBACK definition, needed on Windows // alse needed on OSX to define __DARWIN__