mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[dxvk] Fix missing zero buffer tracking
Scary.
This commit is contained in:
parent
fed51e6c92
commit
ec0deb73da
1 changed files with 3 additions and 1 deletions
|
@ -7601,8 +7601,10 @@ namespace dxvk {
|
|||
|
||||
Rc<DxvkBuffer> DxvkContext::createZeroBuffer(
|
||||
VkDeviceSize size) {
|
||||
if (m_zeroBuffer != nullptr && m_zeroBuffer->info().size >= size)
|
||||
if (m_zeroBuffer && m_zeroBuffer->info().size >= size) {
|
||||
m_cmd->track(m_zeroBuffer, DxvkAccess::Read);
|
||||
return m_zeroBuffer;
|
||||
}
|
||||
|
||||
DxvkBufferCreateInfo bufInfo;
|
||||
bufInfo.size = align<VkDeviceSize>(size, 1 << 20);
|
||||
|
|
Loading…
Add table
Reference in a new issue