fixed a crash bug with certain cards that do not support stencil buffer. The crash would fail the display of the first frame. Example card, PowerVR kyro
This commit is contained in:
parent
e3abfcffc3
commit
458d86dcbf
|
|
@ -4767,8 +4767,10 @@ void DXGraphicsStateGuardian8::set_render_target() {
|
|||
|
||||
_pD3DDevice->GetDepthStencilSurface(&pStencil);
|
||||
_pD3DDevice->SetRenderTarget(pBack,pStencil);
|
||||
pBack->Release();
|
||||
pStencil->Release();
|
||||
if (pBack)
|
||||
pBack->Release();
|
||||
if (pStencil)
|
||||
pStencil->Release();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Reference in New Issue