[macOS] Disable live resize in multithreaded rendering mode.
This commit is contained in:
parent
54738d3195
commit
dfa509a3b4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue