From db9b394cdd67c0f41e694daf63f0ad99965721e7 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Sat, 3 Feb 2024 19:31:53 -0500
Subject: [PATCH] Fix

---
 indra/newview/alrenderutils.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/indra/newview/alrenderutils.cpp b/indra/newview/alrenderutils.cpp
index fe88f5e2d20..7d11550cdcb 100644
--- a/indra/newview/alrenderutils.cpp
+++ b/indra/newview/alrenderutils.cpp
@@ -472,12 +472,12 @@ bool ALRenderUtil::setupColorGrade()
 		{
 			std::string lut_path = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "colorlut", lut_name);
 
-			if(lut_path.empty())
+			if(!LLFile::isfile(lut_path))
 			{
 				lut_path = gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, "colorlut", lut_name);
 			}
 
-			if (!lut_path.empty())
+			if (LLFile::isfile(lut_path))
 			{
 				std::string temp_exten = gDirUtilp->getExtension(lut_path);
 				bool decode_success = false;
-- 
GitLab