Skip to content
Snippets Groups Projects
Commit 1aa393c8 authored by Drake Arconis's avatar Drake Arconis
Browse files

Add a check for a potentially null shader pointer

parent 85ff5051
No related branches found
No related tags found
No related merge requests found
...@@ -214,7 +214,7 @@ void LLGLSLShader::startProfile() ...@@ -214,7 +214,7 @@ void LLGLSLShader::startProfile()
//static //static
void LLGLSLShader::stopProfile(U32 count, U32 mode) void LLGLSLShader::stopProfile(U32 count, U32 mode)
{ {
if (sProfileEnabled) if (sProfileEnabled && sCurBoundShaderPtr)
{ {
sCurBoundShaderPtr->readProfileQuery(count, mode); sCurBoundShaderPtr->readProfileQuery(count, mode);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment