From 9036eb48047b2e33243e2cc67cf0ca4cda08056e Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 17 May 2016 20:14:06 +0200 Subject: [PATCH] Graphics/Light: Fix compilation Former-commit-id: 39de337102ae862b74d5fe8fae9fdb7e19e32e06 --- include/Nazara/Graphics/Light.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Nazara/Graphics/Light.inl b/include/Nazara/Graphics/Light.inl index 266f7939a..e877852cb 100644 --- a/include/Nazara/Graphics/Light.inl +++ b/include/Nazara/Graphics/Light.inl @@ -178,7 +178,7 @@ namespace Nz inline void Light::SetShadowMapFormat(PixelFormatType shadowFormat) { - NazaraAssert(PixelFormat::GetType(shadowFormat) == PixelFormatTypeType_Depth, "Shadow format type is not a depth format"); + NazaraAssert(PixelFormat::GetContent(shadowFormat) == PixelFormatContent_DepthStencil, "Shadow format type is not a depth format"); m_shadowMapFormat = shadowFormat;