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:
parent
9a76645228
commit
6d5f5580fb
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user