From 09b9f1dc1ec69683c3143f309e6e8a0141361624 Mon Sep 17 00:00:00 2001 From: assiduous Date: Thu, 26 Mar 2020 11:40:00 -0700 Subject: Renamed _DEBUG and DEVELOPMENT macros to DILGENT_DEBUG and DILIGENT_DEVELOPMENT --- Graphics/GraphicsTools/interface/MapHelper.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsTools') diff --git a/Graphics/GraphicsTools/interface/MapHelper.hpp b/Graphics/GraphicsTools/interface/MapHelper.hpp index 8de2e0cd..7ddd63f8 100644 --- a/Graphics/GraphicsTools/interface/MapHelper.hpp +++ b/Graphics/GraphicsTools/interface/MapHelper.hpp @@ -119,9 +119,11 @@ public: { VERIFY(!m_pBuffer && !m_pMappedData && !m_pContext, "Object already mapped"); Unmap(); -#ifdef _DEBUG - auto& BuffDesc = pBuffer->GetDesc(); - VERIFY(sizeof(DataType) <= BuffDesc.uiSizeInBytes, "Data type size exceeds buffer size"); +#ifdef DILIGENT_DEBUG + { + auto& BuffDesc = pBuffer->GetDesc(); + VERIFY(sizeof(DataType) <= BuffDesc.uiSizeInBytes, "Data type size exceeds buffer size"); + } #endif pContext->MapBuffer(pBuffer, MapType, MapFlags, (PVoid&)m_pMappedData); if (m_pMappedData != nullptr) -- cgit v1.2.3