[Video] remove guFogTableIndexToW

This commit is contained in:
zilmar 2017-05-24 08:47:04 +10:00
parent 86c6377b5d
commit b208a0646a
3 changed files with 0 additions and 18 deletions

View File

@ -545,10 +545,6 @@ int InitGfx()
}
}
fog_t[0] = 0;
// for (int f = 0; f < 64; f++)
// {
// WriteTrace(TraceRDP, TraceDebug, "fog[%d]=%d->%f", f, fog_t[f], guFogTableIndexToW(f));
// }
grFogTable(fog_t);
grVertexLayout(GR_PARAM_FOG_EXT, offsetof(VERTEX, f), GR_PARAM_ENABLE);
}

View File

@ -1591,13 +1591,6 @@ void gfxFogMode(GrFogMode_t mode)
need_to_compile = 1;
}
FX_ENTRY float FX_CALL
guFogTableIndexToW(int i)
{
WriteTrace(TraceGlitch, TraceDebug, "i: %d", i);
return (float)(pow(2.0, 3.0 + (double)(i >> 2)) / (8 - (i & 3)));
}
FX_ENTRY void FX_CALL
guFogGenerateLinear(GrFog_t *fogtable,
float nearZ, float farZ)

View File

@ -1536,13 +1536,6 @@ void gfxFogMode(GrFogMode_t mode)
grDisplayGLError("gfxFogMode");
}
FX_ENTRY float FX_CALL
guFogTableIndexToW(int i)
{
WriteTrace(TraceGlitch, TraceDebug, "i: %d", i);
return (float)(pow(2.0, 3.0 + (double)(i >> 2)) / (8 - (i & 3)));
}
FX_ENTRY void FX_CALL
guFogGenerateLinear(GrFog_t * /*fogtable*/,
float nearZ, float farZ)