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:
parent
a59c768489
commit
0a78e5f117
@ -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>(
|
||||
|
@ -43,7 +43,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
QXcbVulkanWindow::QXcbVulkanWindow(QWindow *window)
|
||||
: QXcbWindow(window),
|
||||
m_surface(nullptr)
|
||||
m_surface(VK_NULL_HANDLE)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user