Explorar o código

Call -update when window becomes the key window

Patrick Beard %!s(int64=7) %!d(string=hai) anos
pai
achega
d2ed3b224a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      platform/osx/os_osx.mm

+ 1 - 0
platform/osx/os_osx.mm

@@ -325,6 +325,7 @@ static Vector2 get_mouse_pos(NSEvent *event) {
 - (void)windowDidBecomeKey:(NSNotification *)notification {
 	//_GodotInputWindowFocus(window, GL_TRUE);
 	//_GodotPlatformSetCursorMode(window, window->cursorMode);
+	[OS_OSX::singleton->context update];
 	if (OS_OSX::singleton->get_main_loop())
 		OS_OSX::singleton->get_main_loop()->notification(MainLoop::NOTIFICATION_WM_FOCUS_IN);
 }