From a145ec9c0fbb0f6a00640d839eb64ebb60b6380e Mon Sep 17 00:00:00 2001 From: hikerstk Date: Tue, 1 Nov 2011 22:17:00 +0000 Subject: [PATCH] Fixed compiler warnings. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10072 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/material.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/material.cpp b/src/graphics/material.cpp index b9ed8e3b1..a94662418 100644 --- a/src/graphics/material.cpp +++ b/src/graphics/material.cpp @@ -50,11 +50,11 @@ public: virtual void OnSetConstants(irr::video::IMaterialRendererServices *services, s32 userData) { // Irrlicht knows this is actually a GLint and makes the conversion - int decaltex = 0.0f; + int decaltex = 0; services->setPixelShaderConstant("DecalTex", (float*)&decaltex, 1); // Irrlicht knows this is actually a GLint and makes the conversion - int bumptex = 1.0f; + int bumptex = 1; services->setPixelShaderConstant("BumpTex", (float*)&bumptex, 1); // TODO: check the position of the sun