summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2023-04-13 09:00:45 +0100
committerDavid Edmundson <davidedmundson@kde.org>2023-04-13 09:39:52 +0100
commit4f607ebfca1d40fe25eb1afdbfebb1265f4ce65c (patch)
tree8d641d8713cd5c9f2fa617eed33655288f5fb576 /src
parent250862c3dd04936e314a9b2617189823fdb01a28 (diff)
downloadqtwayland-4f607ebfca1d40fe25eb1afdbfebb1265f4ce65c.tar.gz
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>
Diffstat (limited to 'src')
-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();
}