From 2ed229473d7473593e8d502003991487bb622018 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev <andreykproductengine@lindenlab.com> Date: Thu, 2 Dec 2021 17:35:03 +0200 Subject: [PATCH] SL-14403 Remove unused shader binds remains from glod --- indra/newview/llmodelpreview.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp index e22a04006ec..907b5ec4181 100644 --- a/indra/newview/llmodelpreview.cpp +++ b/indra/newview/llmodelpreview.cpp @@ -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() -- GitLab