Skip to content
Permalink
Browse files

- Remove dead code

  • Loading branch information
dpjudas committed Apr 15, 2018
1 parent 8b4c74f commit e15baa21cbf56e6c1daa3e6b31f7ccef33a2f414
Showing with 1 addition and 8 deletions.
  1. +1 −2 src/gl/renderer/gl_renderstate.cpp
  2. +0 −6 src/gl/renderer/gl_renderstate.h
@@ -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);
@@ -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 @@ class FRenderState
}
}

void SetLightIndex(int n)
{
mLightIndex = n;
}

void EnableBrightmap(bool on)
{
mBrightmapEnabled = on;

0 comments on commit e15baa2

Please sign in to comment.
You can’t perform that action at this time.