Explorar el Código

Merge pull request #107437 from stuartcarnie/macos_fix_embedded_crash

macOS: Initialize `CVDisplayLinkRef` member field
Rémi Verschelde hace 3 meses
padre
commit
494cdc37a0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;