From dd6b8d2d8510220e1a13328f03437052adadd8ba Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 22 Nov 2018 13:40:27 -0800 Subject: Fixed issue with resource state transition in D3D11 backend --- Common/interface/ValidatedCast.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Common/interface') diff --git a/Common/interface/ValidatedCast.h b/Common/interface/ValidatedCast.h index 1a520336..5b825b4f 100644 --- a/Common/interface/ValidatedCast.h +++ b/Common/interface/ValidatedCast.h @@ -26,7 +26,7 @@ #include "../../Platforms/Basic/interface/DebugUtilities.h" template -DstType* ValidatedCast( SrcType *Ptr ) +DstType* ValidatedCast(SrcType* Ptr) { #ifdef _DEBUG if(Ptr != nullptr) @@ -34,5 +34,5 @@ DstType* ValidatedCast( SrcType *Ptr ) CHECK_DYNAMIC_TYPE( DstType, Ptr ); } #endif - return Ptr != nullptr ? static_cast( Ptr ) : nullptr; + return static_cast(Ptr); } -- cgit v1.2.3