From 06048ae8180399e299e3df62c60aa9f1cce962dc Mon Sep 17 00:00:00 2001 From: Shyotl Date: Mon, 17 Oct 2011 12:16:57 -0500 Subject: [PATCH] Fixed avatars being invisible when using legacy path. Assumption of no shader use when LLGLSLShader::sNoFixedFunctionis false is not valid with Singularity. --- indra/newview/lldrawpoolavatar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/newview/lldrawpoolavatar.cpp b/indra/newview/lldrawpoolavatar.cpp index 4de0b48c8..14b2e20f9 100644 --- a/indra/newview/lldrawpoolavatar.cpp +++ b/indra/newview/lldrawpoolavatar.cpp @@ -826,7 +826,8 @@ void LLDrawPoolAvatar::beginSkinned() } } - if (LLGLSLShader::sNoFixedFunction) + //if (LLGLSLShader::sNoFixedFunction) //Singu Note: sNoFixedFunction being false does not imply shaders are off, unlike in V3. + if (gPipeline.canUseVertexShaders()) //Check if shaders are REALLY used. { sVertexProgram->setAlphaRange(0.2f, 1.f); }