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 5f43c4f..c8300d9 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 f39015e..34f950d 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 1b29a2d..d9e0afa 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