Skip to content

Commit

Permalink
Fix double ShaderResourceView creation for some cases in R3 and R4.
Browse files Browse the repository at this point in the history
  • Loading branch information
intorr committed Feb 13, 2018
1 parent 7ee472f commit 10efe46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Layers/xrRenderDX10/dx10SH_Texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,11 @@ void CTexture::Load()
// pSurface->SetPriority (PRIORITY_NORMAL);
flags.MemoryUsage = mem;
}

if (pSurface && bCreateView)
CHK_DX(HW.pDevice->CreateShaderResourceView(pSurface, NULL, &m_pSRView));
}

if (pSurface && bCreateView)
CHK_DX(HW.pDevice->CreateShaderResourceView(pSurface, NULL, &m_pSRView));
PostLoad();
}

Expand Down

0 comments on commit 10efe46

Please sign in to comment.