SL-15391 Crash at getUniformLocation
parent
80ac5d49d9
commit
3b3ff53eb5
|
|
@ -1436,7 +1436,11 @@ GLint LLGLSLShader::getUniformLocation(U32 index)
|
|||
GLint ret = -1;
|
||||
if (mProgramObject)
|
||||
{
|
||||
llassert(index < mUniform.size());
|
||||
if (index >= mUniform.size())
|
||||
{
|
||||
LL_WARNS_ONCE("Shader") << "Uniform index " << index << " out of bounds " << (S32)mUniform.size() << LL_ENDL;
|
||||
return ret;
|
||||
}
|
||||
return mUniform[index];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue