]> OCCT Git - occt-copy.git/commitdiff
0030681: Configuration - suppress OpenGL deprecation warning on macOS 10.14
authorkgv <kgv@opencascade.com>
Mon, 29 Apr 2019 15:43:14 +0000 (18:43 +0300)
committerbugmaster <bugmaster@opencascade.com>
Tue, 30 Apr 2019 11:26:51 +0000 (14:26 +0300)
Define GL_SILENCE_DEPRECATION to suppress warnings.

src/OpenGl/OpenGl_Context_1.mm
src/OpenGl/OpenGl_GlFunctions.hxx
src/OpenGl/OpenGl_Window_1.mm

index 5f43c4f30968956c27e82c9e1e9b821365e56d9e..c8300d95916b0a68788309b04bc92116ab92d14b 100644 (file)
@@ -19,6 +19,9 @@
 #define GL_GLEXT_LEGACY // To prevent inclusion of system glext.h on Mac OS X 10.6.8
 #endif
 
+// macOS 10.4 deprecated OpenGL framework - suppress useless warnings
+#define GL_SILENCE_DEPRECATION
+
 #import <TargetConditionals.h>
 
 #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
index f39015e87a5c16a69eb5f3b4f92fd932ec7662b2..34f950d32748f9eeb33d24b641f11781fe5d1189 100644 (file)
@@ -46,6 +46,8 @@
 // include main OpenGL header provided with system
 #if defined(__APPLE__)
   #import <TargetConditionals.h>
+  // macOS 10.4 deprecated OpenGL framework - suppress useless warnings
+  #define GL_SILENCE_DEPRECATION
   #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
     #include <OpenGLES/ES2/gl.h>
   #else
index 1b29a2d421dea4cebead6d3c4f888ffc7e071e39..d9e0afad5d935da940255d3740cca618aadf87f2 100644 (file)
@@ -19,6 +19,9 @@
 #define GL_GLEXT_LEGACY // To prevent inclusion of system glext.h on Mac OS X 10.6.8
 #endif
 
+// macOS 10.4 deprecated OpenGL framework - suppress useless warnings
+#define GL_SILENCE_DEPRECATION
+
 #import <TargetConditionals.h>
 
 #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE