[Video] Remove gfxFogGenerateLinear

This commit is contained in:
zilmar 2017-05-24 17:30:02 +10:00
parent 40e8ee7066
commit 0646ec5d74
4 changed files with 4 additions and 27 deletions

View File

@ -534,18 +534,7 @@ int InitGfx()
if (g_settings->fog()) //"FOGCOORD" extension
{
GrFog_t fog_t[64];
gfxFogGenerateLinear(fog_t, 0.0f, 255.0f);
for (int i = 63; i > 0; i--)
{
if (fog_t[i] - fog_t[i - 1] > 63)
{
fog_t[i - 1] = fog_t[i] - 63;
}
}
fog_t[0] = 0;
grFogTable(fog_t);
gfxFogGenerateLinear(0.0f, 255.0f);
grVertexLayout(GR_PARAM_FOG_EXT, offsetof(VERTEX, f), GR_PARAM_ENABLE);
}

View File

@ -1591,7 +1591,7 @@ void gfxFogMode(GrFogMode_t mode)
need_to_compile = 1;
}
void gfxFogGenerateLinear(GrFog_t *fogtable, float nearZ, float farZ)
void gfxFogGenerateLinear(float nearZ, float farZ)
{
WriteTrace(TraceGlitch, TraceDebug, "nearZ: %f farZ: %f", nearZ, farZ);
/*
@ -1604,12 +1604,6 @@ void gfxFogGenerateLinear(GrFog_t *fogtable, float nearZ, float farZ)
fogEnd = farZ / 255.0f;
}
FX_ENTRY void FX_CALL
grFogTable(const GrFog_t /*ft */[])
{
WriteTrace(TraceGlitch, TraceDebug, "-");
}
FX_ENTRY void FX_CALL
grFogColorValue(GrColor_t fogcolor)
{

View File

@ -1536,7 +1536,7 @@ void gfxFogMode(GrFogMode_t mode)
grDisplayGLError("gfxFogMode");
}
void gfxFogGenerateLinear(GrFog_t *fogtable, float nearZ, float farZ)
void gfxFogGenerateLinear(float nearZ, float farZ)
{
WriteTrace(TraceGlitch, TraceDebug, "nearZ: %f farZ: %f", nearZ, farZ);
glFogi(GL_FOG_MODE, GL_LINEAR);
@ -1547,12 +1547,6 @@ void gfxFogGenerateLinear(GrFog_t *fogtable, float nearZ, float farZ)
grDisplayGLError("gfxFogGenerateLinear");
}
FX_ENTRY void FX_CALL
grFogTable(const GrFog_t /*ft */[])
{
WriteTrace(TraceGlitch, TraceDebug, "-");
}
FX_ENTRY void FX_CALL
grFogColorValue(GrColor_t fogcolor)
{

View File

@ -31,7 +31,7 @@ void gfxAlphaBlendFunction(GrAlphaBlendFnc_t rgb_sf, GrAlphaBlendFnc_t rgb_df, G
void gfxAlphaTestReferenceValue(gfxAlpha_t value);
void gfxAlphaTestFunction(GrCmpFnc_t function);
void gfxFogMode(GrFogMode_t mode);
void gfxFogGenerateLinear(GrFog_t *fogtable, float nearZ, float farZ);
void gfxFogGenerateLinear(float nearZ, float farZ);
extern uint32_t nbTextureUnits;
extern uint32_t g_scr_res_x, g_scr_res_y, g_res_x, g_res_y;