Added .get() to fix build

This commit is contained in:
Robert Osfield
2009-07-16 11:26:14 +00:00
parent 9eb03d450d
commit 7f1b0055bd

View File

@@ -420,7 +420,7 @@ ref_ptr<StateSet> MDLReader::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)