Client: Use correct type in vulkan window for null

VkSurfaceKHR is not a pointer, nullptr is not always the same size.

Pick-to: 6.5
Task-number: QTBUG-112808
Change-Id: I12e5f61b67b9aa331f7e42a952413e922d09eb8d
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
David Edmundson 2023-04-13 09:00:45 +01:00
parent 684367c462
commit 446508bea7

View File

@ -29,7 +29,7 @@ void QWaylandVulkanWindow::invalidateSurface()
if (inst)
static_cast<QWaylandVulkanInstance *>(inst->handle())->destroySurface(m_surface);
}
m_surface = nullptr;
m_surface = VK_NULL_HANDLE;
QWaylandWindow::invalidateSurface();
}