From dfa509a3b421f3c1b831967ff58e8b6e5d38e26d Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Fri, 8 Sep 2023 08:39:47 +0300 Subject: [PATCH] [macOS] Disable live resize in multithreaded rendering mode. --- platform/osx/os_osx.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 4d8dd41ace3..c540093bbe0 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -478,7 +478,7 @@ static NSCursor *cursorFromSelector(SEL selector, SEL fallback = nil) { @implementation GodotContentView - (void)drawRect:(NSRect)dirtyRect { - if (OS_OSX::singleton->get_main_loop() && OS_OSX::singleton->is_resizing) { + if (OS_OSX::singleton->get_main_loop() && (OS_OSX::singleton->get_render_thread_mode() != OS::RENDER_SEPARATE_THREAD) && OS_OSX::singleton->is_resizing) { Main::force_redraw(); if (!Main::is_iterating()) { // Avoid cyclic loop. Main::iteration();