From 3a42d2b94a0f2d27b4baef63abaf49e64139ff01 Mon Sep 17 00:00:00 2001
From: Geenz <geenz@geenzo.com>
Date: Mon, 1 Apr 2019 18:51:28 -0700
Subject: [PATCH] Whoops! Always make sure that our primary format is assigned.

---
 indra/llrender/llimagegl.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index 16fd6ffe8a5..2f1f702d2c5 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:
-- 
GitLab