mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Zero-initialize mapped buffers for images correctly
This commit is contained in:
parent
f50c5234dc
commit
b384f5372e
@ -203,6 +203,13 @@ namespace dxvk {
|
|||||||
image, value, subresources);
|
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();
|
FlushImplicit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user