xcb: Fix nullptr vs. VK_NULL_HANDLE error

Fallout from a recent 0 - nullptr fixup in 5.15.

Change-Id: I17adf742d4f65dc6a468fbe72d0f02d3efa276d7
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Laszlo Agocs 2020-01-09 16:34:07 +01:00
parent a59c768489
commit 0a78e5f117
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ bool QXcbVulkanInstance::supportsPresent(VkPhysicalDevice physicalDevice,
VkSurfaceKHR QXcbVulkanInstance::createSurface(QXcbWindow *window)
{
VkSurfaceKHR surface = nullptr;
VkSurfaceKHR surface = VK_NULL_HANDLE;
if (!m_createSurface) {
m_createSurface = reinterpret_cast<PFN_vkCreateXcbSurfaceKHR>(

View File

@ -43,7 +43,7 @@ QT_BEGIN_NAMESPACE
QXcbVulkanWindow::QXcbVulkanWindow(QWindow *window)
: QXcbWindow(window),
m_surface(nullptr)
m_surface(VK_NULL_HANDLE)
{
}