summaryrefslogtreecommitdiff
path: root/indra/llrender/llimagegl.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2026-02-06 18:44:26 +0200
committerAndrey Lihatskiy <118752495+marchcat@users.noreply.github.com>2026-02-06 18:59:56 +0200
commitee3242a56372e1b930840f1067fbe59cdb56e447 (patch)
tree169c4cb8fc1ed13a3aec29b0360df8f02743c995 /indra/llrender/llimagegl.cpp
parentdda37e54acd66800138d50973c3e82827062448a (diff)
#5380 Fix crash in LLImageGL::analyzeAlpha()
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
-rw-r--r--indra/llrender/llimagegl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index 97ea6f67bd..4a3d32c7ff 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -2189,7 +2189,7 @@ void LLImageGL::calcAlphaChannelOffsetAndStride()
void LLImageGL::analyzeAlpha(const void* data_in, U32 w, U32 h)
{
- if(sSkipAnalyzeAlpha || !mNeedsAlphaAndPickMask)
+ if(!data_in || sSkipAnalyzeAlpha || !mNeedsAlphaAndPickMask)
{
return ;
}