summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorGeenz <geenz@geenzo.com>2019-04-01 18:51:28 -0700
committerGeenz <geenz@geenzo.com>2019-04-01 18:51:28 -0700
commit3a42d2b94a0f2d27b4baef63abaf49e64139ff01 (patch)
treecf4e72796daf0f3eeeab1de9b338b05b67d7f8a7 /indra
parent0e47ca896d701eeb3c38a3bcb188bcceacaba80b (diff)
Whoops! Always make sure that our primary format is assigned.
Diffstat (limited to 'indra')
-rw-r--r--indra/llrender/llimagegl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index 16fd6ffe8a..2f1f702d2c 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -1403,6 +1403,7 @@ BOOL LLImageGL::createGLTexture(S32 discard_level, const LLImageRaw* imageraw, S
else {
mFormatInternal = GL_RGBA8;
}
+ mFormatPrimary = GL_RGBA;
mFormatType = GL_UNSIGNED_BYTE;
break;
default: