From 1fdd6416c985a7cd4f96511044aa28c8d6dd5d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 15 Feb 2022 11:09:39 +0100 Subject: [PATCH] external,Platform: suppress GL deprecation warnigs on iOS as well. Got done in 7ced4740fd14fd04d4e8cf04248e486b4793e89a and f3fc17e2b0abfba81a201df18fb792a53ce67e16 for CGL and OpenAL, but ever since Travis decided we're not worthy of using their services, I didn't have a chance to check the warning in the iOS build. Now I have. --- src/Magnum/Platform/WindowlessIosApplication.mm | 1 + src/MagnumExternal/OpenGL/GLES2/flextGLPlatformIOS.cpp | 1 + src/MagnumExternal/OpenGL/GLES3/flextGLPlatformIOS.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/src/Magnum/Platform/WindowlessIosApplication.mm b/src/Magnum/Platform/WindowlessIosApplication.mm index 96a6aa7ee..090c590af 100644 --- a/src/Magnum/Platform/WindowlessIosApplication.mm +++ b/src/Magnum/Platform/WindowlessIosApplication.mm @@ -31,6 +31,7 @@ #include "Magnum/GL/Version.h" #include "Magnum/Platform/GLContext.h" +#define GLES_SILENCE_DEPRECATION /* YES I KNOW, APPLE! FFS */ #import "EAGL.h" #if __has_feature(objc_arc) diff --git a/src/MagnumExternal/OpenGL/GLES2/flextGLPlatformIOS.cpp b/src/MagnumExternal/OpenGL/GLES2/flextGLPlatformIOS.cpp index ff8eea69f..a5d27abd9 100644 --- a/src/MagnumExternal/OpenGL/GLES2/flextGLPlatformIOS.cpp +++ b/src/MagnumExternal/OpenGL/GLES2/flextGLPlatformIOS.cpp @@ -162,6 +162,7 @@ #undef glGenVertexArraysOES #undef glIsVertexArrayOES +#define GLES_SILENCE_DEPRECATION /* YES I KNOW, APPLE! FFS */ #include void flextGLInit(Magnum::GL::Context&) { diff --git a/src/MagnumExternal/OpenGL/GLES3/flextGLPlatformIOS.cpp b/src/MagnumExternal/OpenGL/GLES3/flextGLPlatformIOS.cpp index 6547082ad..81cc5911b 100644 --- a/src/MagnumExternal/OpenGL/GLES3/flextGLPlatformIOS.cpp +++ b/src/MagnumExternal/OpenGL/GLES3/flextGLPlatformIOS.cpp @@ -160,6 +160,7 @@ #undef glTexStorage3DMultisampleOES #undef glFramebufferTextureMultiviewOVR +#define GLES_SILENCE_DEPRECATION /* YES I KNOW, APPLE! FFS */ #include void flextGLInit(Magnum::GL::Context&) {