mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 13:08:50 +01:00
[dxvk] Update buffer view in clearBufferView
Otherwise we might accidentally clear the wrong buffer region.
This commit is contained in:
parent
9dbe352c51
commit
4dac8e7233
@ -292,6 +292,10 @@ namespace dxvk {
|
||||
this->spillRenderPass();
|
||||
this->unbindComputePipeline();
|
||||
|
||||
// The view range might have been invalidated, so
|
||||
// we need to make sure the handle is up to date
|
||||
bufferView->updateView();
|
||||
|
||||
auto bufferSlice = bufferView->getSliceHandle();
|
||||
|
||||
if (m_barriers.isBufferDirty(bufferSlice, DxvkAccess::Write))
|
||||
|
Loading…
Reference in New Issue
Block a user