소스 검색

Merge pull request #107437 from stuartcarnie/macos_fix_embedded_crash

macOS: Initialize `CVDisplayLinkRef` member field
Rémi Verschelde 3 달 전
부모
커밋
494cdc37a0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      platform/macos/embedded_gl_manager.h

+ 1 - 1
platform/macos/embedded_gl_manager.h

@@ -90,7 +90,7 @@ class GLManagerEmbedded {
 	CGLErrorStringPtr CGLErrorString = nullptr;
 
 	uint32_t display_id = INVALID_DISPLAY_ID;
-	CVDisplayLinkRef display_link;
+	CVDisplayLinkRef display_link = nullptr;
 	bool vsync_enabled = false;
 	bool display_link_running = false;
 	dispatch_semaphore_t display_semaphore = nullptr;