diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index b0fb54512..5dd82bc4a 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -3959,7 +3959,7 @@ void renderSelectedFaces(LLGLSLShader& shader, std::vector &selected_fa } const LLTextureEntry* te = facep->getTextureEntry(); - LLMaterial* mat = te ? te->getMaterialParams() : NULL; + LLMaterial* mat = te ? te->getMaterialParams().get() : NULL; if(channel == LLRender::DIFFUSE_MAP) {