Reverted commit that added backface culling ... which was already supported

(also the patch did not initialise memory).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6769 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2010-11-29 11:31:07 +00:00
parent e9365d3a70
commit a1e6c01dae
2 changed files with 1 additions and 13 deletions

View File

@@ -63,7 +63,6 @@ Material::Material(const XMLNode *node, int index)
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,15 +277,7 @@ void Material::setMaterialProperties(video::SMaterial *m) const
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)
{

View File

@@ -62,9 +62,6 @@ private:
/** 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;