From 240564c44a665fd21974aa314df50a76284be1ca Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Thu, 9 Sep 2021 11:44:36 -0400
Subject: [PATCH] Fix bug in GL core texture format swizzle buffer usage

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

diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index 272d20403ea..18f3b22b898 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -1254,6 +1254,8 @@ void LLImageGL::setManualImage(U32 target, S32 miplevel, S32 intformat, S32 widt
 					pix[3] = ((U8*)pixels)[i];
 				}
 
+				pixels = &scratch[0];
+
 				pixformat = GL_RGBA;
 				intformat = GL_RGBA8;
 			}
-- 
GitLab