summaryrefslogtreecommitdiffstats
path: root/unityplugin/GhostCubeScene/src
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-04-21 03:03:35 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-04-21 03:03:35 +0000
commit12f29884f41303fe59502eee5789a4481fb1cffe (patch)
treea54a317efcd984b0723c066cd75a74d864550846 /unityplugin/GhostCubeScene/src
parentFixed errors in blend state test on Vulkan (diff)
downloadDiligentEngine-12f29884f41303fe59502eee5789a4481fb1cffe.tar.gz
DiligentEngine-12f29884f41303fe59502eee5789a4481fb1cffe.zip
Few updates (restricted minimal window size on Win32, updated RawPtr() method, updated submodules)
Diffstat (limited to 'unityplugin/GhostCubeScene/src')
-rw-r--r--unityplugin/GhostCubeScene/src/GhostCubeSceneResTrsnHelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unityplugin/GhostCubeScene/src/GhostCubeSceneResTrsnHelper.cpp b/unityplugin/GhostCubeScene/src/GhostCubeSceneResTrsnHelper.cpp
index 39b89c1..4464cc0 100644
--- a/unityplugin/GhostCubeScene/src/GhostCubeSceneResTrsnHelper.cpp
+++ b/unityplugin/GhostCubeScene/src/GhostCubeSceneResTrsnHelper.cpp
@@ -42,8 +42,8 @@ void GhostCubeSceneResTrsnHelper::TransitionResources(int stateCount, UnityGraph
for (int i = 0; i < stateCount; ++i)
{
auto &ResState = states[i];
- ITextureD3D12 *pMirrorRT = ValidatedCast<ITextureD3D12>(m_TheScene.m_pRenderTarget.RawPtr());
- ITextureD3D12 *pMirrorDepth = ValidatedCast<ITextureD3D12>(m_TheScene.m_pDepthBuffer.RawPtr());
+ ITextureD3D12 *pMirrorRT = m_TheScene.m_pRenderTarget.RawPtr<ITextureD3D12>();
+ ITextureD3D12 *pMirrorDepth = m_TheScene.m_pDepthBuffer.RawPtr<ITextureD3D12>();
ITextureD3D12 *pResToTransition = nullptr;
if (ResState.resource == pMirrorRT->GetD3D12Texture())
pResToTransition = pMirrorRT;