MAINT-4678: fix crash on launch in gpu benchmark

Oz Linden 2014-11-14 14:16:31 -05:00
parent 69ee044740
commit c82dd52491
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ void LLGLSLShader::startProfile()
//static
void LLGLSLShader::stopProfile(U32 count, U32 mode)
{
if (sProfileEnabled)
if (sProfileEnabled && sCurBoundShaderPtr)
{
sCurBoundShaderPtr->readProfileQuery(count, mode);
}