소스 검색

Merge pull request #23100 from pcbeard/osx_blankscreen_fix

macOS: Update context when window becomes the key window
Rémi Verschelde 6 년 전
부모
커밋
1287e0300d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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);
 }