Merge pull request #55464 from bruvzg/macos_fix_transp_crash
This commit is contained in:
commit
2d42c4da31
1 changed files with 4 additions and 3 deletions
|
@ -2909,11 +2909,12 @@ void OS_OSX::set_window_per_pixel_transparency_enabled(bool p_enabled) {
|
||||||
layered_window = false;
|
layered_window = false;
|
||||||
}
|
}
|
||||||
[context update];
|
[context update];
|
||||||
NSRect frame = [window_object frame];
|
|
||||||
|
|
||||||
if (!is_no_window_mode_enabled()) {
|
if (!is_no_window_mode_enabled()) {
|
||||||
[window_object setFrame:NSMakeRect(frame.origin.x, frame.origin.y, 1, 1) display:YES];
|
// Force resize window frame to update OpenGL context.
|
||||||
[window_object setFrame:frame display:YES];
|
NSRect frameRect = [window_object frame];
|
||||||
|
[window_object setFrame:NSMakeRect(frameRect.origin.x, frameRect.origin.y, frameRect.size.width + 1, frameRect.size.height) display:NO];
|
||||||
|
[window_object setFrame:frameRect display:YES];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue