From 912944e59d60659d48569b5bccdf01d84593feac Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 25 May 2015 17:03:57 -0700 Subject: [PATCH] vk/device: Use the correct number of viewports when creating default VP state Fixes valgrind uninitialized value errors --- src/vulkan/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/device.c b/src/vulkan/device.c index db90093eb85..066d63598a6 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -3141,7 +3141,7 @@ VkResult anv_CreateFramebuffer( vkCreateDynamicViewportState((VkDevice) device, &(VkDynamicVpStateCreateInfo) { .sType = VK_STRUCTURE_TYPE_DYNAMIC_VP_STATE_CREATE_INFO, - .viewportAndScissorCount = 2, + .viewportAndScissorCount = 1, .pViewports = (VkViewport[]) { { .originX = 0, -- 2.30.2