From 6d5f5580fb82092c40872d2ab4c411b47797f110 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 23 Apr 2020 20:49:59 +0200 Subject: [PATCH] [dxvk] Use correct size to clear zero buffer --- src/dxvk/dxvk_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index cd32f5893..8d6e9d4ab 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -4809,7 +4809,7 @@ namespace dxvk { m_zeroBuffer = m_device->createBuffer(bufInfo, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); - clearBuffer(m_zeroBuffer, 0, size, 0); + clearBuffer(m_zeroBuffer, 0, bufInfo.size, 0); m_execBarriers.recordCommands(m_cmd); return m_zeroBuffer; }