- fix model chasecam crash
This commit is contained in:
parent
29c6782aa1
commit
f2e37d506e
2 changed files with 6 additions and 3 deletions
|
|
@ -248,6 +248,11 @@ void VkRenderState::ApplyRenderPass(int dt)
|
|||
if (changingRenderPass)
|
||||
{
|
||||
passKey.ClearTargets = mClearTargets;
|
||||
|
||||
// Only clear depth+stencil if the render target actually has that
|
||||
if (!mRenderTarget.DepthStencil)
|
||||
passKey.ClearTargets &= ~(CT_Depth | CT_Stencil);
|
||||
|
||||
BeginRenderPass(passKey, mCommandBuffer);
|
||||
mRenderPassKey = passKey;
|
||||
mClearTargets = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue