From b3822c93c5d2436375d8a883e408858e43eea867 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 13 Apr 2023 09:00:45 +0100 Subject: Client: Use correct type in vulkan window for null VkSurfaceKHR is not a pointer, nullptr is not always the same size. Task-number: QTBUG-112808 Change-Id: I12e5f61b67b9aa331f7e42a952413e922d09eb8d Reviewed-by: Eskil Abrahamsen Blomfeldt Reviewed-by: Axel Spoerl (cherry picked from commit 4f607ebfca1d40fe25eb1afdbfebb1265f4ce65c) Reviewed-by: Qt Cherry-pick Bot --- src/client/qwaylandvulkanwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/qwaylandvulkanwindow.cpp b/src/client/qwaylandvulkanwindow.cpp index 6a284658..2bc52829 100644 --- a/src/client/qwaylandvulkanwindow.cpp +++ b/src/client/qwaylandvulkanwindow.cpp @@ -29,7 +29,7 @@ void QWaylandVulkanWindow::invalidateSurface() if (inst) static_cast(inst->handle())->destroySurface(m_surface); } - m_surface = nullptr; + m_surface = VK_NULL_HANDLE; QWaylandWindow::invalidateSurface(); } -- cgit v1.2.1