summaryrefslogtreecommitdiffstats
path: root/Common/interface
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-11-22 21:40:27 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-11-22 21:40:27 +0000
commitdd6b8d2d8510220e1a13328f03437052adadd8ba (patch)
treeddb204ce11cce1e6461bd1143457e8247aad61a2 /Common/interface
parentFixed issue with state transitions in d3d11 backend (diff)
downloadDiligentCore-dd6b8d2d8510220e1a13328f03437052adadd8ba.tar.gz
DiligentCore-dd6b8d2d8510220e1a13328f03437052adadd8ba.zip
Fixed issue with resource state transition in D3D11 backend
Diffstat (limited to 'Common/interface')
-rw-r--r--Common/interface/ValidatedCast.h4
1 files changed, 2 insertions, 2 deletions
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<typename DstType, typename SrcType>
-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<DstType*>( Ptr ) : nullptr;
+ return static_cast<DstType*>(Ptr);
}