From c18122226e9bce55b19cae5bc630e4f25e360e1e Mon Sep 17 00:00:00 2001 From: Julian Sikorski Date: Tue, 22 Aug 2023 19:12:11 +0200 Subject: [PATCH] Fix multiple windows handling (#3162) --- src/renderer_vk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer_vk.cpp b/src/renderer_vk.cpp index 7be6e3329..04679a96d 100644 --- a/src/renderer_vk.cpp +++ b/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