Fixed build.

This commit is contained in:
Robert Osfield 2009-07-16 11:35:59 +00:00
parent 7f1b0055bd
commit c2c5a82b92

View File

@ -902,7 +902,7 @@ ref_ptr<StateSet> VBSPReader::readMaterialFile(std::string materialName)
material->setEmission(Material::FRONT_AND_BACK,
Vec4(0.0, 0.0, 0.0, 1.0) );
material->setAlpha(Material::FRONT_AND_BACK, alpha);
stateSet->setAttributeAndModes(material, StateAttribute::ON);
stateSet->setAttributeAndModes(material.get(), StateAttribute::ON);
}
else if (equalCaseInsensitive(shaderName, "UnlitGeneric"))
{
@ -958,7 +958,7 @@ ref_ptr<StateSet> VBSPReader::readMaterialFile(std::string materialName)
material->setEmission(Material::FRONT_AND_BACK,
Vec4(0.0, 0.0, 0.0, 1.0) );
material->setAlpha(Material::FRONT_AND_BACK, alpha);
stateSet->setAttributeAndModes(material, StateAttribute::ON);
stateSet->setAttributeAndModes(material.get(), StateAttribute::ON);
// Add the texture attribute (or disable texturing if no base texture)
if (texture != NULL)