summaryrefslogtreecommitdiff
path: root/indra/llrender/llimagegl.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-10-22 22:07:00 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-10-22 22:22:17 +0300
commit0bf11e45ea34a21b980c36c99be476613552d560 (patch)
treeda1709b074febd1c92f768c8fd70d3665818c575 /indra/llrender/llimagegl.cpp
parent83600bb16ac305542de9bb9fd8eba1bec90dc1b0 (diff)
SL-14150 Handle more cases of corrupted cache
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
-rw-r--r--indra/llrender/llimagegl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index c85b9a890a..0151d20128 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -1387,8 +1387,8 @@ BOOL LLImageGL::createGLTexture(S32 discard_level, const LLImageRaw* imageraw, S
}
if (mHasExplicitFormat &&
- (mFormatPrimary == GL_RGBA && mComponents < 4) ||
- (mFormatPrimary == GL_RGB && mComponents < 3))
+ ((mFormatPrimary == GL_RGBA && mComponents < 4) ||
+ (mFormatPrimary == GL_RGB && mComponents < 3)))
{
LL_WARNS() << "Incorrect format: " << std::hex << mFormatPrimary << " components: " << (U32)mComponents << LL_ENDL;