Fixed a crash for hardware lacking ARB_shader_objects extension support.
This commit is contained in:
@@ -445,9 +445,12 @@ void LLGLSLShader::unbind()
|
|||||||
|
|
||||||
void LLGLSLShader::bindNoShader(void)
|
void LLGLSLShader::bindNoShader(void)
|
||||||
{
|
{
|
||||||
glUseProgramObjectARB(0);
|
if (gGLManager.mHasShaderObjects)
|
||||||
sCurBoundShader = 0;
|
{
|
||||||
sCurBoundShaderPtr = NULL;
|
glUseProgramObjectARB(0);
|
||||||
|
sCurBoundShader = 0;
|
||||||
|
sCurBoundShaderPtr = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
S32 LLGLSLShader::enableTexture(S32 uniform, LLTexUnit::eTextureType mode)
|
S32 LLGLSLShader::enableTexture(S32 uniform, LLTexUnit::eTextureType mode)
|
||||||
|
|||||||
Reference in New Issue
Block a user