Skip to content

Commit

Permalink
Merge pull request #81442 from bruvzg/gl_mt
Browse files Browse the repository at this point in the history
[macOS, 3.x] Disable live resize in multithreaded rendering mode.
  • Loading branch information
akien-mga authored Sep 18, 2023
2 parents 47a93ba + dfa509a commit 86dee6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/osx/os_osx.mm
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ - (void)updateLayer;
@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();
Expand Down

0 comments on commit 86dee6e

Please sign in to comment.