From 4e4fc504da8e0090ccfd27fdd084da0a221c373c Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Tue, 12 Jan 2021 13:58:05 -0800 Subject: [PATCH] Removed unused param. --- common/lc_context.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/lc_context.cpp b/common/lc_context.cpp index cafeb815..19fe1c8a 100644 --- a/common/lc_context.cpp +++ b/common/lc_context.cpp @@ -1116,10 +1116,7 @@ void lcContext::FlushState() if (mHighlightParamsDirty && Program.HighlightParamsLocation != -1) { - lcMatrix44 InverseViewMatrix = lcMatrix44AffineInverse(mViewMatrix); - mHighlightParams[4] = InverseViewMatrix[2]; - - glUniform4fv(Program.HighlightParamsLocation, 5, mHighlightParams[0]); + glUniform4fv(Program.HighlightParamsLocation, 4, mHighlightParams[0]); mHighlightParamsDirty = false; } }