From 81ed6699ee529a9301bcb082b86b5557ae414d5b Mon Sep 17 00:00:00 2001 From: Panagiotis Christopoulos Charitos Date: Mon, 30 Sep 2024 17:39:22 +0200 Subject: [PATCH] Fix a DX barriers bug --- AnKi/Gr/D3D/D3DTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnKi/Gr/D3D/D3DTexture.cpp b/AnKi/Gr/D3D/D3DTexture.cpp index 32e219a61..ce2afa397 100644 --- a/AnKi/Gr/D3D/D3DTexture.cpp +++ b/AnKi/Gr/D3D/D3DTexture.cpp @@ -519,7 +519,7 @@ D3D12_TEXTURE_BARRIER TextureImpl::computeBarrierInfo(TextureUsageBit before, Te ANKI_ASSERT((m_usage & after) == after); ANKI_ASSERT(subresource == TextureView(this, subresource).getSubresource() && "Should have been sanitized"); - D3D12_TEXTURE_BARRIER barrier; + D3D12_TEXTURE_BARRIER barrier = {}; computeBarrierInfo(before, barrier.SyncBefore, barrier.AccessBefore); computeBarrierInfo(after, barrier.SyncAfter, barrier.AccessAfter);