From eb129d6308eaca88131656fd58124355cb1b391a Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 17 Apr 2018 09:20:09 -0700 Subject: Added template version of RawPtr function to allow more convenient type conversion --- Graphics/GraphicsEngine/include/DeviceContextBase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/include/DeviceContextBase.h b/Graphics/GraphicsEngine/include/DeviceContextBase.h index 8099afc7..a586d393 100644 --- a/Graphics/GraphicsEngine/include/DeviceContextBase.h +++ b/Graphics/GraphicsEngine/include/DeviceContextBase.h @@ -262,7 +262,7 @@ inline bool DeviceContextBase :: CommitShaderResources(IShaderRes if (pShaderResourceBinding) { - auto *pPSOImpl = ValidatedCast(m_pPipelineState.RawPtr()); + auto *pPSOImpl = m_pPipelineState.RawPtr(); if (pPSOImpl->IsIncompatibleWith(pShaderResourceBinding->GetPipelineState())) { LOG_ERROR_MESSAGE("Shader resource binding object is not compatible with the currently bound pipeline state"); -- cgit v1.2.3