mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
vk/device: Use the correct number of viewports when creating default VP state
Fixes valgrind uninitialized value errors
This commit is contained in:
parent
1b211feb6c
commit
912944e59d
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue