We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ee472f commit 10efe46Copy full SHA for 10efe46
1 file changed
src/Layers/xrRenderDX10/dx10SH_Texture.cpp
@@ -547,10 +547,11 @@ void CTexture::Load()
547
// pSurface->SetPriority (PRIORITY_NORMAL);
548
flags.MemoryUsage = mem;
549
}
550
+
551
+ if (pSurface && bCreateView)
552
+ CHK_DX(HW.pDevice->CreateShaderResourceView(pSurface, NULL, &m_pSRView));
553
554
- if (pSurface && bCreateView)
- CHK_DX(HW.pDevice->CreateShaderResourceView(pSurface, NULL, &m_pSRView));
555
PostLoad();
556
557
0 commit comments