- Remove dead code

This commit is contained in:
Magnus Norddahl 2018-04-15 12:21:40 +02:00
parent 8b4c74fad8
commit e15baa21cb
2 changed files with 1 additions and 8 deletions

View file

@ -69,7 +69,6 @@ void FRenderState::Reset()
currentColorMask[0] = currentColorMask[1] = currentColorMask[2] = currentColorMask[3] = true; currentColorMask[0] = currentColorMask[1] = currentColorMask[2] = currentColorMask[3] = true;
mFogColor.d = -1; mFogColor.d = -1;
mTextureMode = -1; mTextureMode = -1;
mLightIndex = -1;
mDesaturation = 0; mDesaturation = 0;
mSrcBlend = GL_SRC_ALPHA; mSrcBlend = GL_SRC_ALPHA;
mDstBlend = GL_ONE_MINUS_SRC_ALPHA; mDstBlend = GL_ONE_MINUS_SRC_ALPHA;
@ -176,7 +175,7 @@ bool FRenderState::ApplyShader()
activeShader->muClipHeightDirection.Set(mClipHeightDirection); activeShader->muClipHeightDirection.Set(mClipHeightDirection);
activeShader->muTimer.Set((double)(screen->FrameTime - firstFrame) * (double)mShaderTimer / 1000.); activeShader->muTimer.Set((double)(screen->FrameTime - firstFrame) * (double)mShaderTimer / 1000.);
activeShader->muAlphaThreshold.Set(mAlphaThreshold); activeShader->muAlphaThreshold.Set(mAlphaThreshold);
activeShader->muLightIndex.Set(mLightIndex); // will always be -1 for now activeShader->muLightIndex.Set(-1);
activeShader->muClipSplit.Set(mClipSplit); activeShader->muClipSplit.Set(mClipSplit);
activeShader->muViewHeight.Set(viewheight); activeShader->muViewHeight.Set(viewheight);
activeShader->muSpecularMaterial.Set(mGlossiness, mSpecularLevel); activeShader->muSpecularMaterial.Set(mGlossiness, mSpecularLevel);

View file

@ -82,7 +82,6 @@ class FRenderState
bool mBrightmapEnabled; bool mBrightmapEnabled;
bool mColorMask[4]; bool mColorMask[4];
bool currentColorMask[4]; bool currentColorMask[4];
int mLightIndex;
int mSpecialEffect; int mSpecialEffect;
int mTextureMode; int mTextureMode;
int mDesaturation; int mDesaturation;
@ -327,11 +326,6 @@ public:
} }
} }
void SetLightIndex(int n)
{
mLightIndex = n;
}
void EnableBrightmap(bool on) void EnableBrightmap(bool on)
{ {
mBrightmapEnabled = on; mBrightmapEnabled = on;