summaryrefslogtreecommitdiff
path: root/platform/macos
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-21 00:20:30 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-22 13:59:52 +0200
commit1cc5524b81dbc699a9eeb302ca9792377f8352c7 (patch)
tree0a8b61ecf650ac0c3602cd5303298e5175e0e669 /platform/macos
parentcd031fd31a8fdcdae1e93d1b20caf93230f0ac59 (diff)
[iOS] Restore OpenGLES3 renderer support.
Diffstat (limited to 'platform/macos')
-rw-r--r--platform/macos/detect.py2
-rw-r--r--platform/macos/display_server_macos.mm4
2 files changed, 4 insertions, 2 deletions
diff --git a/platform/macos/detect.py b/platform/macos/detect.py
index 14e6e92bfa..cd46dab4f3 100644
--- a/platform/macos/detect.py
+++ b/platform/macos/detect.py
@@ -230,7 +230,7 @@ def configure(env: "Environment"):
env.Append(LIBS=["pthread", "z"])
if env["opengl3"]:
- env.Append(CPPDEFINES=["GLES_ENABLED", "GLES3_ENABLED"])
+ env.Append(CPPDEFINES=["GLES3_ENABLED"])
env.Append(LINKFLAGS=["-framework", "OpenGL"])
env.Append(LINKFLAGS=["-rpath", "@executable_path/../Frameworks", "-rpath", "@executable_path"])
diff --git a/platform/macos/display_server_macos.mm b/platform/macos/display_server_macos.mm
index d992467042..fddd57aef2 100644
--- a/platform/macos/display_server_macos.mm
+++ b/platform/macos/display_server_macos.mm
@@ -3142,7 +3142,9 @@ ObjectID DisplayServerMacOS::window_get_attached_instance_id(WindowID p_window)
void DisplayServerMacOS::gl_window_make_current(DisplayServer::WindowID p_window_id) {
#if defined(GLES3_ENABLED)
- gl_manager->window_make_current(p_window_id);
+ if (gl_manager) {
+ gl_manager->window_make_current(p_window_id);
+ }
#endif
}