From ffb6a4743527fc3f93b541ea52b50fad6bfe9349 Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 19 Jan 2016 12:22:43 +0100 Subject: [PATCH] Graphics/Material: Standardize flag testing Former-commit-id: f2207fa4f1ad600aa09d8b484559bd9155a11f47 --- src/Nazara/Graphics/Material.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nazara/Graphics/Material.cpp b/src/Nazara/Graphics/Material.cpp index 0781c6919..0a4755c03 100644 --- a/src/Nazara/Graphics/Material.cpp +++ b/src/Nazara/Graphics/Material.cpp @@ -677,7 +677,7 @@ namespace Nz flags & ShaderFlags_TextureOverlay); list.SetParameter("TRANSFORM", m_transformEnabled); - list.SetParameter("FLAG_BILLBOARD", static_cast(flags & ShaderFlags_Billboard)); + list.SetParameter("FLAG_BILLBOARD", static_cast((flags & ShaderFlags_Billboard) != 0)); list.SetParameter("FLAG_DEFERRED", static_cast((flags & ShaderFlags_Deferred) != 0)); list.SetParameter("FLAG_INSTANCING", static_cast((flags & ShaderFlags_Instancing) != 0)); list.SetParameter("FLAG_TEXTUREOVERLAY", static_cast((flags & ShaderFlags_TextureOverlay) != 0));