[macOS] Move Wno-deprecated-declarations to pragmas in the OpenGL related files, update some deprecated code.

This commit is contained in:
bruvzg 2023-01-20 11:31:07 +02:00
parent 28a24639c3
commit aecfd92ea8
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
6 changed files with 17 additions and 3 deletions

View file

@ -231,7 +231,6 @@ def configure(env: "Environment"):
if env["opengl3"]:
env.Append(CPPDEFINES=["GLES_ENABLED", "GLES3_ENABLED"])
env.Append(CCFLAGS=["-Wno-deprecated-declarations"]) # Disable deprecation warnings
env.Append(LINKFLAGS=["-framework", "OpenGL"])
env.Append(LINKFLAGS=["-rpath", "@executable_path/../Frameworks", "-rpath", "@executable_path"])