Windows QPA: Fix compiler warning when Vulkan is not present
qwindowsnativeinterface.cpp: In member function 'virtual void* QWindowsNativeInterface::nativeResourceForWindow(const QByteArray&, QWindow*)': qwindowsnativeinterface.cpp:104:12: error: enumeration value 'VulkanSurface' not handled in switch [-Werror=switch] Amends f1a23a546720e4f1541404185ff8e765463e6bf6. Task-number: QTBUG-55981 Change-Id: Ie9bf396ab8ea1be505abfaffd5d603bb3856c089 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
bf9a1cf939
commit
62c7ca2de3
@ -114,12 +114,12 @@ void *QWindowsNativeInterface::nativeResourceForWindow(const QByteArray &resourc
|
||||
case QWindow::OpenGLSurface:
|
||||
case QWindow::OpenVGSurface:
|
||||
break;
|
||||
#if QT_CONFIG(vulkan)
|
||||
case QWindow::VulkanSurface:
|
||||
#if QT_CONFIG(vulkan)
|
||||
if (type == VkSurface)
|
||||
return bw->surface(nullptr, nullptr); // returns the address of the VkSurfaceKHR, not the value, as expected
|
||||
break;
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
qWarning("%s: Invalid key '%s' requested.", __FUNCTION__, resource.constData());
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user