summaryrefslogtreecommitdiffstats
path: root/unityplugin/GhostCubeScene/src
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-01 19:49:01 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-01 19:49:01 +0000
commit0b97399336ea8892418fcbaadcde311900396ce6 (patch)
tree43cc86b9a225d45545fe5677395e24ced353d779 /unityplugin/GhostCubeScene/src
parentFixed minor issue (diff)
downloadDiligentEngine-0b97399336ea8892418fcbaadcde311900396ce6.tar.gz
DiligentEngine-0b97399336ea8892418fcbaadcde311900396ce6.zip
Added explicit state transition control flags to CLEAR_DEPTH_STENCIL_FLAGS
Diffstat (limited to 'unityplugin/GhostCubeScene/src')
-rw-r--r--unityplugin/GhostCubeScene/src/GhostCubeScene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp
index 49dd3a1..8022172 100644
--- a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp
+++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp
@@ -159,7 +159,7 @@ void GhostCubeScene::Render(UnityRenderingEvent RenderEventFunc)
pCtx->SetRenderTargets(1, pRTVs, pDSV, SET_RENDER_TARGETS_FLAG_TRANSITION_ALL);
const float ClearColor[] = { 0.f, 0.2f, 0.5f, 1.0f };
pCtx->ClearRenderTarget(pRTVs[0], ClearColor, CLEAR_RENDER_TARGET_TRANSITION_STATE);
- pCtx->ClearDepthStencil(pDSV, CLEAR_DEPTH_FLAG, ReverseZ ? 0.f : 1.f, 0);
+ pCtx->ClearDepthStencil(pDSV, CLEAR_DEPTH_FLAG | CLEAR_DEPTH_STENCIL_TRANSITION_STATE_FLAG, ReverseZ ? 0.f : 1.f, 0);
if (DeviceCaps.DevType == DeviceType::D3D12)
{