Browse Source

MacOS: Initialize member field

Stuart Carnie 3 tháng trước cách đây
mục cha
commit
962d788c14
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;