You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: HG 2.0 Reported for operating system, platform: macOS 10.15, x86
Comments on the original bug report:
On 2020-03-20 08:56:40 +0000, Emir Marincic wrote:
Created attachment 4271
performSelectorOnMainThread patch
Resizing a window schedules an update on the SDLOpenGLContext, the next swap on the auxiliary thread doing the rendering causes a [NSOpenGLContext update] on that thread, which is not allowed.
[NSOpenGLContext update] only started checking whether it's called from the main thread (through pthread_main_np) from Catalina onwards and AppKit uses _CFExecutableLinkedOnOrAfter to provide compatibility for older executables by setting NSOpenGLContextSuppressThreadAssertions.
I'm not sure if this should be supported but swapping on a separate thread works on enough platforms that we didn't notice this bug for years. Calling update on the main thread instead through performSelectorOnMainThread seems to work fine and after testing a couple of hours I didn't notice any undesired effects.
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.0
Reported for operating system, platform: macOS 10.15, x86
Comments on the original bug report:
On 2020-03-20 08:56:40 +0000, Emir Marincic wrote:
On 2020-03-20 19:10:23 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: