Browse Source

MacOS: Initialize member field

Stuart Carnie 3 months ago
parent
commit
962d788c14
1 changed files with 1 additions and 1 deletions
  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;