Skip to content
Snippets Groups Projects
Commit 2ed22947 authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-14403 Remove unused shader binds

remains from glod
parent 1cd1d3fb
No related branches found
No related tags found
1 merge request!83Merge Linden 6.6.7
......@@ -1691,12 +1691,6 @@ void LLModelPreview::genMeshOptimizerLODs(S32 which_lod, S32 meshopt_mode, U32 d
end = which_lod;
}
LLGLSLShader* shader = LLGLSLShader::sCurBoundShaderPtr;
if (shader)
{
shader->unbind();
}
for (S32 lod = start; lod >= end; --lod)
{
if (which_lod == -1)
......@@ -1855,12 +1849,6 @@ void LLModelPreview::genMeshOptimizerLODs(S32 which_lod, S32 meshopt_mode, U32 d
}
mResourceCost = calcResourceCost();
LLVertexBuffer::unbind();
if (shader)
{
shader->bind();
}
}
void LLModelPreview::updateStatusMessages()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment