summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2023-04-13 09:00:45 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-04-13 10:19:18 +0000
commitb3822c93c5d2436375d8a883e408858e43eea867 (patch)
tree26533df4bc7cae51fe600f3503f51e2c98488dd5
parentdd6c3a2d95debe04467dab5332338513d82e7baa (diff)
downloadqtwayland-b3822c93c5d2436375d8a883e408858e43eea867.tar.gz
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 <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 4f607ebfca1d40fe25eb1afdbfebb1265f4ce65c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/client/qwaylandvulkanwindow.cpp2
1 files changed, 1 insertions, 1 deletions
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<QWaylandVulkanInstance *>(inst->handle())->destroySurface(m_surface);
}
- m_surface = nullptr;
+ m_surface = VK_NULL_HANDLE;
QWaylandWindow::invalidateSurface();
}