mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-26 22:11:51 +00:00
fixed a D3D11 resource hazard warning about depth/stencil buffer bindings
swapped the calls back so that the depth buffer is never bound as both a RT and SRV at the same time
This commit is contained in:
parent
6f7d4892df
commit
dea818a260
1 changed files with 3 additions and 1 deletions
|
@ -920,8 +920,10 @@ static void ApplyPipeline(PipelineId index)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// keep this call order to make sure the depth buffer isn't bound as a SRV anymore
|
||||||
|
// when we set it as a render target
|
||||||
|
ApplyPixelShaderResource(1, d3d.textures[0].view);
|
||||||
d3ds.context->OMSetRenderTargets(1, &d3d.renderTargetViewMS, d3d.depthStencilView);
|
d3ds.context->OMSetRenderTargets(1, &d3d.renderTargetViewMS, d3d.depthStencilView);
|
||||||
ApplyPixelShaderResource(1, d3d.textures[0].view); // make sure the depth shader view isn't bound anymore
|
|
||||||
}
|
}
|
||||||
|
|
||||||
d3d.pipelineIndex = index;
|
d3d.pipelineIndex = index;
|
||||||
|
|
Loading…
Reference in a new issue