Disable live resize in multithreaded rendering mode.

This commit is contained in:
bruvzg 2023-09-08 08:39:47 +03:00 committed by Relintai
parent a80ecfcd3a
commit 0dce2349c0

View File

@ -476,7 +476,7 @@ static NSCursor *cursorFromSelector(SEL selector, SEL fallback = nil) {
@implementation PandemoniumContentView
- (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();