diff options
author | clayjohn <claynjohn@gmail.com> | 2022-09-12 14:57:11 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2022-09-12 17:30:50 -0700 |
commit | 96b7cb66df340e7f2ab379c7eefd29d74ea9e3a9 (patch) | |
tree | dc5bbbc47e31157421aa323de9a78fd19ad29b17 /platform/macos | |
parent | 79b21e96ad7a154e6c64a88150c98bd4dea52e91 (diff) |
Fix multiwindow support in GLES3 for X11, Windows, and MacOS.
Instead of updating all viewports, then blitting all viewports
to the backbuffer, then swapping all buffers, we run through
all viewports and render, blit, and swap backbuffer before
going to the next viewport.
Diffstat (limited to 'platform/macos')
-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) { |