mesa: Apply MSVC portability fixes from Alan Hourihane.
This commit is contained in:

committed by
Keith Whitwell

parent
9118b02fd0
commit
452a592ca4
@@ -427,8 +427,8 @@ _mesa_fetch_state(GLcontext *ctx, const gl_state_index state[],
|
||||
value[0] = (ctx->Fog.End == ctx->Fog.Start)
|
||||
? 1.0f : (GLfloat)(-1.0F / (ctx->Fog.End - ctx->Fog.Start));
|
||||
value[1] = ctx->Fog.End * -value[0];
|
||||
value[2] = ctx->Fog.Density * ONE_DIV_LN2;
|
||||
value[3] = ctx->Fog.Density * ONE_DIV_SQRT_LN2;
|
||||
value[2] = (GLfloat)(ctx->Fog.Density * ONE_DIV_LN2);
|
||||
value[3] = (GLfloat)(ctx->Fog.Density * ONE_DIV_SQRT_LN2);
|
||||
return;
|
||||
|
||||
case STATE_LIGHT_SPOT_DIR_NORMALIZED: {
|
||||
|
Reference in New Issue
Block a user