diff options
Diffstat (limited to 'Graphics/GraphicsTools')
| -rw-r--r-- | Graphics/GraphicsTools/interface/MapHelper.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
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) |
