From a386a8bd2dd338d9e1f0e6601cc4beed4f4359e2 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: 0ae92c86e52bb18aa9587fbb82c932b71b44484c --- 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;