mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d11] Zero-initialize mapped buffers for images correctly
This commit is contained in:
parent
f50c5234dc
commit
b384f5372e
1 changed files with 7 additions and 0 deletions
|
@ -203,6 +203,13 @@ namespace dxvk {
|
|||
image, value, subresources);
|
||||
}
|
||||
}
|
||||
|
||||
if (pTexture->GetMapMode() != D3D11_COMMON_TEXTURE_MAP_MODE_NONE) {
|
||||
for (uint32_t i = 0; i < pTexture->CountSubresources(); i++) {
|
||||
auto buffer = pTexture->GetMappedBuffer(i);
|
||||
std::memset(buffer->mapPtr(0), 0, buffer->info().size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FlushImplicit();
|
||||
|
|
Loading…
Add table
Reference in a new issue