Fix QVulkanWindow on Wayland
The Wayland backend needs 4 buffers and is failing when making QVulkanWindow since there was a hardcoded limit at 3. The Vulkan-backend to RHI already has smarter handling of this. We want to limit the changes we do to the "legacy" QVulkanWindow, so we keep the hardcoded max value but increase it to 4 to accommodate the requirements on Wayland. Task-number: QTBUG-91418 Change-Id: I830bc30d1c2eeac1b076c50d35d5d138fd46dace Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>bb10
parent
f226854d25
commit
be14adfdc8
|
|
@ -126,7 +126,7 @@ public:
|
|||
PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR vkGetPhysicalDeviceSurfaceCapabilitiesKHR = nullptr;
|
||||
PFN_vkGetPhysicalDeviceSurfaceFormatsKHR vkGetPhysicalDeviceSurfaceFormatsKHR;
|
||||
|
||||
static const int MAX_SWAPCHAIN_BUFFER_COUNT = 3;
|
||||
static const int MAX_SWAPCHAIN_BUFFER_COUNT = 4;
|
||||
static const int MAX_FRAME_LAG = QVulkanWindow::MAX_CONCURRENT_FRAME_COUNT;
|
||||
// QVulkanWindow only supports the always available FIFO mode. The
|
||||
// rendering thread will get throttled to the presentation rate (vsync).
|
||||
|
|
|
|||
Loading…
Reference in New Issue