Cocoa: Fix call to NSWindow from non-main threads

glfwSwapBuffers may be called by any thread but NSWindow may not.

Bug introduced by c3ca88055f and reported
by @crujose.

(cherry picked from commit 949275bbed)
This commit is contained in:
Camilla Löwy
2020-04-30 22:12:21 +02:00
committed by Camilla Löwy
parent 404c28df3d
commit 6e01359e36
3 changed files with 10 additions and 1 deletions
+1
View File
@@ -121,6 +121,7 @@ typedef struct _GLFWwindowNS
id layer;
GLFWbool maximized;
GLFWbool occluded;
GLFWbool retina;
// Cached window properties to filter out duplicate events