Graphics/Light: Fix warning in release

This commit is contained in:
SirLynix 2022-12-18 15:04:01 +01:00
parent 3c86b84e13
commit 627b7a1972
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ namespace Nz
{ {
if (m_shadowMapFormat != format) if (m_shadowMapFormat != format)
{ {
PixelFormatContent content = PixelFormatInfo::GetContent(format); [[maybe_unused]] PixelFormatContent content = PixelFormatInfo::GetContent(format);
NazaraAssert(content != PixelFormatContent::Depth && content != PixelFormatContent::DepthStencil, "invalid shadow map format (has no depth)"); NazaraAssert(content != PixelFormatContent::Depth && content != PixelFormatContent::DepthStencil, "invalid shadow map format (has no depth)");
OnLightShadowMapSettingChange(this, format, m_shadowMapSize); OnLightShadowMapSettingChange(this, format, m_shadowMapSize);
@ -59,7 +59,7 @@ namespace Nz
if (m_shadowMapFormat != format || m_shadowMapSize != size) if (m_shadowMapFormat != format || m_shadowMapSize != size)
{ {
NazaraAssert(size > 0, "invalid shadow map size"); NazaraAssert(size > 0, "invalid shadow map size");
PixelFormatContent content = PixelFormatInfo::GetContent(format); [[maybe_unused]] PixelFormatContent content = PixelFormatInfo::GetContent(format);
NazaraAssert(content != PixelFormatContent::Depth && content != PixelFormatContent::DepthStencil, "invalid shadow map format (has no depth)"); NazaraAssert(content != PixelFormatContent::Depth && content != PixelFormatContent::DepthStencil, "invalid shadow map format (has no depth)");
OnLightShadowMapSettingChange(this, format, size); OnLightShadowMapSettingChange(this, format, size);