From: Conor McCarthy cmccarthy@codeweavers.com
Negative widths are not supported in Vulkan. --- libs/vkd3d/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index 5647d48c..f685948d 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -3963,7 +3963,7 @@ static void STDMETHODCALLTYPE d3d12_command_list_RSSetViewports(ID3D12GraphicsCo vk_viewports[count].minDepth = viewports[i].MinDepth; vk_viewports[count].maxDepth = viewports[i].MaxDepth;
- if (!vk_viewports[count].width || !vk_viewports[count].height) + if (vk_viewports[count].width <= 0.0f || !vk_viewports[count].height) { FIXME_ONCE("Ignoring invalid viewport %u.\n", i); continue;