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:
parent
684367c462
commit
446508bea7
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user