1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxvk] Use correct size to clear zero buffer

This commit is contained in:
Philip Rebohle 2020-04-23 20:49:59 +02:00
parent 9a76645228
commit 6d5f5580fb
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -4809,7 +4809,7 @@ namespace dxvk {
m_zeroBuffer = m_device->createBuffer(bufInfo, m_zeroBuffer = m_device->createBuffer(bufInfo,
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT);
clearBuffer(m_zeroBuffer, 0, size, 0); clearBuffer(m_zeroBuffer, 0, bufInfo.size, 0);
m_execBarriers.recordCommands(m_cmd); m_execBarriers.recordCommands(m_cmd);
return m_zeroBuffer; return m_zeroBuffer;
} }