MAINT-4678: fix crash on launch in gpu benchmark
parent
69ee044740
commit
c82dd52491
|
|
@ -214,7 +214,7 @@ void LLGLSLShader::startProfile()
|
|||
//static
|
||||
void LLGLSLShader::stopProfile(U32 count, U32 mode)
|
||||
{
|
||||
if (sProfileEnabled)
|
||||
if (sProfileEnabled && sCurBoundShaderPtr)
|
||||
{
|
||||
sCurBoundShaderPtr->readProfileQuery(count, mode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue