From: <hik...@us...> - 2010-11-29 11:31:13
|
Revision: 6769 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=6769&view=rev Author: hikerstk Date: 2010-11-29 11:31:07 +0000 (Mon, 29 Nov 2010) Log Message: ----------- Reverted commit that added backface culling ... which was already supported (also the patch did not initialise memory). Modified Paths: -------------- main/trunk/src/graphics/material.cpp main/trunk/src/graphics/material.hpp Modified: main/trunk/src/graphics/material.cpp =================================================================== --- main/trunk/src/graphics/material.cpp 2010-11-29 11:03:22 UTC (rev 6768) +++ main/trunk/src/graphics/material.cpp 2010-11-29 11:31:07 UTC (rev 6769) @@ -63,7 +63,6 @@ node->get("max-speed", &m_max_speed_fraction); node->get("slowdown-time", &m_slowdown_time ); node->get("anisotropic", &m_anisotropic ); - node->get("noculling", &m_disable_cull ); node->get("backface-culling", &m_backface_culling ); std::string s(""); node->get("graphical-effect", &s ); @@ -278,16 +277,8 @@ else if (UserConfigParams::m_trilinear) { m->setFlag(video::EMF_TRILINEAR_FILTER, true); - } + } - // noculling - if (m_disable_cull) - { - m->setFlag( irr::video::EMF_BACK_FACE_CULLING , false ); - } - - - if ( (m_clamp_tex & UCLAMP) != 0) { // m->setFlag(); Modified: main/trunk/src/graphics/material.hpp =================================================================== --- main/trunk/src/graphics/material.hpp 2010-11-29 11:03:22 UTC (rev 6768) +++ main/trunk/src/graphics/material.hpp 2010-11-29 11:31:07 UTC (rev 6769) @@ -62,9 +62,6 @@ /** Whether to use anisotropic filtering for this texture */ bool m_anisotropic; - /** Disable the culling **/ - bool m_disable_cull; - /** True if lightmapping is enabled for this material. */ bool m_lightmap; float m_friction; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |