Bläddra i källkod

Fix multiple windows handling (#3162)

Julian Sikorski 2 år sedan
förälder
incheckning
c18122226e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/renderer_vk.cpp

+ 1 - 1
src/renderer_vk.cpp

@@ -6785,7 +6785,7 @@ VK_DESTROY
 				sci.pNext = NULL;
 				sci.flags = 0;
 				sci.display = (wl_display*)g_platformData.ndt;
-				sci.surface = (wl_surface*)((wl_egl_window*)g_platformData.nwh)->surface;
+				sci.surface = (wl_surface*)((wl_egl_window*)m_nwh)->surface;
 				result = vkCreateWaylandSurfaceKHR(instance, &sci, allocatorCb, &m_surface);
 			}
 			else