diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index 4f61d5bbb66ae73c2eecc6c7ff0edbee98cdc80a..474fa9d58e091fc4d012989a6c306c21b98769c2 100644
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -1573,8 +1573,8 @@ void LLPanelFace::updateAlphaControls(LLUICtrl* ctrl, void* userdata)
 // static
 void LLPanelFace::onCommitAlphaMode(LLUICtrl* ctrl, void* userdata)
 {
-	LLPanelFace* self = (LLPanelFace*) userdata;
-	self->updateAlphaControls(ctrl,userdata);
+	//LLPanelFace* self = (LLPanelFace*) userdata;
+	updateAlphaControls(ctrl,userdata);
 	llinfos << "updating material" << llendl;
 	//self->updateMaterial();
 }