Skip to content

Commit

Permalink
xrRender_R4: fix for DB validation error when MSAA is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
vTurbine committed Jul 18, 2023
1 parent e4f40e0 commit 8bd5c4f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Layers/xrRenderDX11/dx11SH_Texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,20 @@ void CTexture::surface_set(ID3DBaseTexture* surf)
{
_RELEASE(srv_all);
CHK_DX(HW.pDevice->CreateShaderResourceView(pSurface, &ViewDesc, &srv_all));
}
else
srv_all = 0;

srv_per_slice.resize(desc.ArraySize);
for (int id = 0; id < desc.ArraySize; ++id)
{
_RELEASE(srv_per_slice[id]);
srv_per_slice.resize(desc.ArraySize);
for (int id = 0; id < desc.ArraySize; ++id)
{
_RELEASE(srv_per_slice[id]);

ViewDesc.Texture2DArray.ArraySize = 1;
ViewDesc.Texture2DArray.FirstArraySlice = id;
CHK_DX(HW.pDevice->CreateShaderResourceView(pSurface, &ViewDesc, &srv_per_slice[id]));
ViewDesc.Texture2DArray.ArraySize = 1;
ViewDesc.Texture2DArray.FirstArraySlice = id;
CHK_DX(HW.pDevice->CreateShaderResourceView(pSurface, &ViewDesc, &srv_per_slice[id]));
}
set_slice(-1);
}
set_slice(-1);
else
srv_all = 0;
}
else
{
Expand Down

0 comments on commit 8bd5c4f

Please sign in to comment.