From 5690f52d4a734f6a7e3bb459a599e8be9ee8570b Mon Sep 17 00:00:00 2001
From: toaster <rollerorbital@gmail.com>
Date: Fri, 4 Jun 2021 17:56:31 +0100
Subject: [PATCH] Revert the move for V_CubeApply to the Gamma corrected space.
 Doesn't work quite right at the moment, and tired of this branch being held
 up.

---
 src/v_video.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/v_video.c b/src/v_video.c
index 5434b4fe1..1fae74306 100644
--- a/src/v_video.c
+++ b/src/v_video.c
@@ -333,7 +333,13 @@ static void LoadPalette(const char *lumpname)
 		if (!Cubeapply)
 			continue;
 
-		pLocalPalette[i].rgba = V_GammaEncode(V_CubeApply(&pGammaCorrectedPalette[i]));
+		pLocalPalette[i].rgba =
+#if 0
+			V_GammaEncode(V_CubeApply(&pGammaCorrectedPalette[i])) // ideal, needs a rewrite to take advantage of it though
+#else
+			V_CubeApply(&pMasterPalette[i]) // until then we live in imperfection
+#endif
+			;
 	}
 }
 
-- 
GitLab