From bf43a8574c394c27bad1b0b08c88cad308a55572 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Tue, 16 Jan 2024 12:09:26 -0500
Subject: [PATCH] Fix failure to optimize away alpha channel on some GLTF
 upload paths (#606)

Co-authored-by: RunitaiLinden <davep@lindenlab.com>
---
 indra/newview/lltinygltfhelper.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/indra/newview/lltinygltfhelper.cpp b/indra/newview/lltinygltfhelper.cpp
index 999be07dbaf..5b75db37d08 100644
--- a/indra/newview/lltinygltfhelper.cpp
+++ b/indra/newview/lltinygltfhelper.cpp
@@ -178,6 +178,7 @@ LLImageRaw * LLTinyGLTFHelper::getTexture(const std::string & folder, const tiny
     {
         rawImage = new LLImageRaw(&image->image[0], image->width, image->height, image->component);
         rawImage->verticalFlip();
+        rawImage->optimizeAwayAlpha();
     }
 
     return rawImage;
-- 
GitLab