diff options
Diffstat (limited to 'indra/llrender')
| -rw-r--r-- | indra/llrender/llglslshader.cpp | 18 | ||||
| -rw-r--r-- | indra/llrender/llglslshader.h | 5 | ||||
| -rw-r--r-- | indra/llrender/llpostprocess.cpp | 2 | 
3 files changed, 4 insertions, 21 deletions
| diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp index 42b7cc46b3..faa45d59b9 100644 --- a/indra/llrender/llglslshader.cpp +++ b/indra/llrender/llglslshader.cpp @@ -1041,26 +1041,10 @@ void LLGLSLShader::bind(bool rigged)      }  } -void LLGLSLShader::unbind() +void LLGLSLShader::unbind(void)  {      LL_PROFILE_ZONE_SCOPED_CATEGORY_SHADER;      gGL.flush(); -    if (sCurBoundShaderPtr) -    { -        sCurBoundShaderPtr->readProfileQuery(); -    } -    stop_glerror(); -    LLVertexBuffer::unbind(); -    glUseProgram(0); -    sCurBoundShader = 0; -    sCurBoundShaderPtr = NULL; -    stop_glerror(); -} - -void LLGLSLShader::bindNoShader(void) -{ -    LL_PROFILE_ZONE_SCOPED_CATEGORY_SHADER; -      LLVertexBuffer::unbind();      if (sCurBoundShaderPtr) diff --git a/indra/llrender/llglslshader.h b/indra/llrender/llglslshader.h index 1ec41ebd3c..6c18282fec 100644 --- a/indra/llrender/llglslshader.h +++ b/indra/llrender/llglslshader.h @@ -254,10 +254,9 @@ public:      void bind();      //helper to conditionally bind mRiggedVariant instead of this      void bind(bool rigged); -    void unbind(); - +          // Unbinds any previously bound shader by explicitly binding no shader. -    static void bindNoShader(void); +    static void unbind();      U32 mMatHash[LLRender::NUM_MATRIX_MODES];      U32 mLightHash; diff --git a/indra/llrender/llpostprocess.cpp b/indra/llrender/llpostprocess.cpp index 0d87800690..f1e5b71207 100644 --- a/indra/llrender/llpostprocess.cpp +++ b/indra/llrender/llpostprocess.cpp @@ -376,7 +376,7 @@ void LLPostProcess::doEffects(void)  	checkError();  	applyShaders(); -	LLGLSLShader::bindNoShader(); +	LLGLSLShader::unbind();  	checkError();  	/// Change to a perspective view | 
