summaryrefslogtreecommitdiffstats
path: root/platform/osx/detect.py
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2021-11-02 12:27:38 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2021-11-02 13:11:55 +0200
commit1ad14eb14b0b25319d47c987edb0d096c470dc64 (patch)
tree6f8a3a32b9140281f5ae5c28bfa5098a3203e096 /platform/osx/detect.py
parent87727f70ed5316253407e4435a1ea1fb379d1b80 (diff)
downloadredot-engine-1ad14eb14b0b25319d47c987edb0d096c470dc64.tar.gz
[macOS] Add support for OpenGLES3 video driver.
Diffstat (limited to 'platform/osx/detect.py')
-rw-r--r--platform/osx/detect.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py
index d9b55631cd..6bd79c7d4f 100644
--- a/platform/osx/detect.py
+++ b/platform/osx/detect.py
@@ -183,10 +183,13 @@ def configure(env):
)
env.Append(LIBS=["pthread", "z"])
+ if env["opengl3"]:
+ env.Append(CPPDEFINES=["GLES_ENABLED", "GLES3_ENABLED"])
+ env.Append(CCFLAGS=["-Wno-deprecated-declarations"]) # Disable deprecation warnings
+ env.Append(LINKFLAGS=["-framework", "OpenGL"])
+
if env["vulkan"]:
env.Append(CPPDEFINES=["VULKAN_ENABLED"])
env.Append(LINKFLAGS=["-framework", "Metal", "-framework", "QuartzCore", "-framework", "IOSurface"])
if not env["use_volk"]:
env.Append(LINKFLAGS=["-L$VULKAN_SDK_PATH/MoltenVK/MoltenVK.xcframework/macos-arm64_x86_64/", "-lMoltenVK"])
-
- # env.Append(CPPDEFINES=['GLES_ENABLED', 'GLES3_ENABLED'])