gl_engine: --deprecated warnings on macOS

macOS has officially deprecated OpenGL.
shutdown the warnings to avoid be side-tracked.
This commit is contained in:
Hermet Park 2024-07-05 12:10:05 +09:00 committed by Hermet Park
parent ea11d4d8a8
commit d8f00f79be

View file

@ -25,6 +25,7 @@ source_file = [
if host_machine.system() == 'darwin' if host_machine.system() == 'darwin'
gl_dep = declare_dependency(link_args: ['-framework', 'OpenGL']) gl_dep = declare_dependency(link_args: ['-framework', 'OpenGL'])
compiler_flags += ['-Wno-deprecated'] #for deprecated opengl
else else
#find a opengl library with fallbacks #find a opengl library with fallbacks
gl_dep = dependency('GL', required: false) gl_dep = dependency('GL', required: false)