From 8122a2fb343b3dadf37f87f99ff5194dd5e0a5d6 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 11 Nov 2019 08:48:16 -0800 Subject: Fixed clang warnings in release build --- Graphics/GraphicsEngine/include/DeviceContextBase.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/include/DeviceContextBase.h b/Graphics/GraphicsEngine/include/DeviceContextBase.h index f67756e9..3cf70d30 100644 --- a/Graphics/GraphicsEngine/include/DeviceContextBase.h +++ b/Graphics/GraphicsEngine/include/DeviceContextBase.h @@ -891,6 +891,7 @@ void DeviceContextBase :: ITexture* pDstTexture, const ResolveTextureSubresourceAttribs& ResolveAttribs) { +#ifdef DEVELOPMENT VERIFY_EXPR(pSrcTexture != nullptr && pDstTexture != nullptr); const auto& SrcTexDesc = pSrcTexture->GetDesc(); const auto& DstTexDesc = pDstTexture->GetDesc(); @@ -917,6 +918,7 @@ void DeviceContextBase :: { DEV_CHECK_ERR(!ResolveFmtAttribs.IsTypeless, "Format of a resolve operations must not be typeless when one of the texture formats is typeless"); } +#endif } #ifdef DEVELOPMENT -- cgit v1.2.3