Remove redundant methods of checking if shaders are enabled. Just use LLGLSLShader::sNoFixedFunction.
This commit is contained in:
@@ -79,7 +79,7 @@ void LLDrawPoolTree::beginRenderPass(S32 pass)
|
||||
shader = &gTreeProgram;
|
||||
}
|
||||
|
||||
if (gPipeline.canUseVertexShaders())
|
||||
if (LLGLSLShader::sNoFixedFunction)
|
||||
{
|
||||
shader->bind();
|
||||
shader->setMinimumAlpha(0.5f);
|
||||
|
||||
Reference in New Issue
Block a user