diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-11-11 16:48:16 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-11-11 16:48:16 +0000 |
| commit | 8122a2fb343b3dadf37f87f99ff5194dd5e0a5d6 (patch) | |
| tree | 7d36cf8eaf958f94af9adb2de719f97c17bd7ebf /Graphics/GraphicsEngine | |
| parent | Fixed minor clang build issue (diff) | |
| download | DiligentCore-8122a2fb343b3dadf37f87f99ff5194dd5e0a5d6.tar.gz DiligentCore-8122a2fb343b3dadf37f87f99ff5194dd5e0a5d6.zip | |
Fixed clang warnings in release build
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/include/DeviceContextBase.h | 2 |
1 files changed, 2 insertions, 0 deletions
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<BaseInterface,ImplementationTraits> :: 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<BaseInterface,ImplementationTraits> :: { 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 |
