From 5682cd0d4c1f3dbe1bc9d56c18a49c7e9859b9d9 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Wed, 24 Feb 2010 12:12:45 +0000 Subject: [PATCH] Work around for bright light on Linux and Windows. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4825 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/irr_driver.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index 70aef339b..84702b3a2 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -411,8 +411,9 @@ void IrrDriver::setAllMaterialFlags(scene::IAnimatedMesh *mesh) const for(unsigned int j=0; jsetAllFlatMaterialFlags(mb); - else material_manager->setAllMaterialFlags(t, mb); + //if (!t) material_manager->setAllFlatMaterialFlags(mb); + //else material_manager->setAllMaterialFlags(t, mb); + if(t) material_manager->setAllMaterialFlags(t, mb); } // for jsetAllUntexturedMaterialFlags(mb);