From 783c9d459123246fb2b938558674c22ee70f55a4 Mon Sep 17 00:00:00 2001 From: Kaitlyn <87990853+BunniKaitlyn@users.noreply.github.com> Date: Wed, 13 Mar 2024 20:41:11 -0400 Subject: [PATCH] Fix MiscFlags check in GetDescFromResource --- src/d3d11/d3d11_view_srv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_view_srv.cpp b/src/d3d11/d3d11_view_srv.cpp index 065e6005..2b2f5520 100644 --- a/src/d3d11/d3d11_view_srv.cpp +++ b/src/d3d11/d3d11_view_srv.cpp @@ -298,7 +298,7 @@ namespace dxvk { D3D11_BUFFER_DESC bufferDesc; static_cast(pResource)->GetDesc(&bufferDesc); - if (bufferDesc.MiscFlags == D3D11_RESOURCE_MISC_BUFFER_STRUCTURED) { + if (bufferDesc.MiscFlags & D3D11_RESOURCE_MISC_BUFFER_STRUCTURED) { pDesc->Format = DXGI_FORMAT_UNKNOWN; pDesc->ViewDimension = D3D11_SRV_DIMENSION_BUFFER; pDesc->Buffer.FirstElement = 0;