diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-09-13 08:23:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-13 08:23:16 +0200 |
commit | 0b716fdb31f1780b541cbda862f2319a78be55ee (patch) | |
tree | 738d6fa2ce8f142e8d4afe484a4da2160494e453 /platform/macos/gl_manager_macos_legacy.mm | |
parent | 6a8b2a4210d424935aeac14bc70c105601823549 (diff) | |
parent | 96b7cb66df340e7f2ab379c7eefd29d74ea9e3a9 (diff) |
Merge pull request #65727 from clayjohn/GLES3-multiwindow
Fix multiwindow support in GLES3 for X11, Windows, and MacOS.
Diffstat (limited to 'platform/macos/gl_manager_macos_legacy.mm')
-rw-r--r-- | platform/macos/gl_manager_macos_legacy.mm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/macos/gl_manager_macos_legacy.mm b/platform/macos/gl_manager_macos_legacy.mm index e6bb7aaa85..dec4821b86 100644 --- a/platform/macos/gl_manager_macos_legacy.mm +++ b/platform/macos/gl_manager_macos_legacy.mm @@ -167,9 +167,8 @@ void GLManager_MacOS::make_current() { } void GLManager_MacOS::swap_buffers() { - for (const KeyValue<DisplayServer::WindowID, GLWindow> &E : windows) { - [E.value.context flushBuffer]; - } + GLWindow &win = windows[current_window]; + [win.context flushBuffer]; } void GLManager_MacOS::window_update(DisplayServer::WindowID p_window_id) { |