-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macOS] Fix driver crash when enabling per-pixel transparency on M1 macs. #55464
Conversation
[window_object setFrame:NSMakeRect(frame.origin.x, frame.origin.y, 1, 1) display:YES]; | ||
[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]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth adding a comment to clarify the purpose of this call (especially with width + 1
, which I guess is to enforce a redraw with a different size?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comment, yes it's resizing window a bit to trigger GL context update.
00f7418
to
dd41cf2
Compare
dd41cf2
to
f72cc71
Compare
Thanks! |
Cherry-picked for 3.4.1. |
Thanks! Much appreciated! |
Fixes #43951
I have no idea why, but apparently driver do not like resizing window to (1 x 1), which was done to force redraw.