From 0420f6816d6814aa674b129a86379c1b20ba0575 Mon Sep 17 00:00:00 2001 From: assiduous Date: Wed, 17 Mar 2021 15:10:03 -0700 Subject: Some more code improvemnts in D3D11 backend --- Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp index ec04acb9..9bd09ffe 100644 --- a/Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/BufferD3D12Impl.cpp @@ -384,7 +384,7 @@ ID3D12Resource* BufferD3D12Impl::GetD3D12Buffer(Uint64& DataStartByteOffset, IDe auto* pd3d12Resource = GetD3D12Resource(); if (pd3d12Resource != nullptr) { - VERIFY(m_Desc.Usage != USAGE_DYNAMIC || (m_Desc.BindFlags | (BIND_SHADER_RESOURCE | BIND_UNORDERED_ACCESS)) != 0, "Expected non-dynamic buffer or a buffer with SRV or UAV bind flags"); + VERIFY(m_Desc.Usage != USAGE_DYNAMIC || (m_Desc.BindFlags & (BIND_SHADER_RESOURCE | BIND_UNORDERED_ACCESS)) != 0, "Expected non-dynamic buffer or a buffer with SRV or UAV bind flags"); DataStartByteOffset = 0; return pd3d12Resource; } -- cgit v1.2.3