From e15baa21cbf56e6c1daa3e6b31f7ccef33a2f414 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 15 Apr 2018 12:21:40 +0200 Subject: [PATCH] - Remove dead code --- src/gl/renderer/gl_renderstate.cpp | 3 +-- src/gl/renderer/gl_renderstate.h | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/gl/renderer/gl_renderstate.cpp b/src/gl/renderer/gl_renderstate.cpp index 2d02742f6..a24210678 100644 --- a/src/gl/renderer/gl_renderstate.cpp +++ b/src/gl/renderer/gl_renderstate.cpp @@ -69,7 +69,6 @@ void FRenderState::Reset() currentColorMask[0] = currentColorMask[1] = currentColorMask[2] = currentColorMask[3] = true; mFogColor.d = -1; mTextureMode = -1; - mLightIndex = -1; mDesaturation = 0; mSrcBlend = GL_SRC_ALPHA; mDstBlend = GL_ONE_MINUS_SRC_ALPHA; @@ -176,7 +175,7 @@ bool FRenderState::ApplyShader() activeShader->muClipHeightDirection.Set(mClipHeightDirection); activeShader->muTimer.Set((double)(screen->FrameTime - firstFrame) * (double)mShaderTimer / 1000.); activeShader->muAlphaThreshold.Set(mAlphaThreshold); - activeShader->muLightIndex.Set(mLightIndex); // will always be -1 for now + activeShader->muLightIndex.Set(-1); activeShader->muClipSplit.Set(mClipSplit); activeShader->muViewHeight.Set(viewheight); activeShader->muSpecularMaterial.Set(mGlossiness, mSpecularLevel); diff --git a/src/gl/renderer/gl_renderstate.h b/src/gl/renderer/gl_renderstate.h index 54590e9de..8c69ff4c7 100644 --- a/src/gl/renderer/gl_renderstate.h +++ b/src/gl/renderer/gl_renderstate.h @@ -82,7 +82,6 @@ class FRenderState bool mBrightmapEnabled; bool mColorMask[4]; bool currentColorMask[4]; - int mLightIndex; int mSpecialEffect; int mTextureMode; int mDesaturation; @@ -327,11 +326,6 @@ public: } } - void SetLightIndex(int n) - { - mLightIndex = n; - } - void EnableBrightmap(bool on) { mBrightmapEnabled = on;