summaryrefslogtreecommitdiff
path: root/FL/gl.h
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-11 09:32:31 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-11 09:32:31 +0100
commit8235967dcca61fe867be15bda07ef1ba8131a0e9 (patch)
treeacf3c740a4d85729fde2c3c805c4c44071a2aca2 /FL/gl.h
parentf576faf2a6cf2aff8e22264abf506accae009dc3 (diff)
Fix "Compilation warning: 'NSOpenGLContext' on macOS 11" !#646)
Diffstat (limited to 'FL/gl.h')
-rw-r--r--FL/gl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/FL/gl.h b/FL/gl.h
index 10eb05e05..e47c66e3c 100644
--- a/FL/gl.h
+++ b/FL/gl.h
@@ -55,6 +55,7 @@
# endif
# ifdef __APPLE__ // PORTME: OpenGL path abstraction
+# define GL_SILENCE_DEPRECATION 1
# if !defined(__gl3_h_) // make sure OpenGL/gl3.h was not included before
# include <OpenGL/gl.h>
# endif