diff options
Diffstat (limited to 'src/mesa/main/fog.c')
-rw-r--r-- | src/mesa/main/fog.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/main/fog.c b/src/mesa/main/fog.c index 0decf762a99..a9a354bd689 100644 --- a/src/mesa/main/fog.c +++ b/src/mesa/main/fog.c @@ -104,7 +104,7 @@ _mesa_Fogfv( GLenum pname, const GLfloat *params ) } if (ctx->Fog.Mode == m) return; - FLUSH_VERTICES(ctx, _NEW_FOG); + FLUSH_VERTICES(ctx, _NEW_FOG, GL_FOG_BIT); ctx->Fog.Mode = m; ctx->Fog._PackedEnabledMode = ctx->Fog.Enabled ? ctx->Fog._PackedMode : FOG_NONE; @@ -116,19 +116,19 @@ _mesa_Fogfv( GLenum pname, const GLfloat *params ) } if (ctx->Fog.Density == *params) return; - FLUSH_VERTICES(ctx, _NEW_FOG); + FLUSH_VERTICES(ctx, _NEW_FOG, GL_FOG_BIT); ctx->Fog.Density = *params; break; case GL_FOG_START: if (ctx->Fog.Start == *params) return; - FLUSH_VERTICES(ctx, _NEW_FOG); + FLUSH_VERTICES(ctx, _NEW_FOG, GL_FOG_BIT); ctx->Fog.Start = *params; break; case GL_FOG_END: if (ctx->Fog.End == *params) return; - FLUSH_VERTICES(ctx, _NEW_FOG); + FLUSH_VERTICES(ctx, _NEW_FOG, GL_FOG_BIT); ctx->Fog.End = *params; break; case GL_FOG_INDEX: @@ -136,13 +136,13 @@ _mesa_Fogfv( GLenum pname, const GLfloat *params ) goto invalid_pname; if (ctx->Fog.Index == *params) return; - FLUSH_VERTICES(ctx, _NEW_FOG); + FLUSH_VERTICES(ctx, _NEW_FOG, GL_FOG_BIT); ctx->Fog.Index = *params; break; case GL_FOG_COLOR: if (TEST_EQ_4V(ctx->Fog.Color, params)) return; - FLUSH_VERTICES(ctx, _NEW_FOG); + FLUSH_VERTICES(ctx, _NEW_FOG, GL_FOG_BIT); ctx->Fog.ColorUnclamped[0] = params[0]; ctx->Fog.ColorUnclamped[1] = params[1]; ctx->Fog.ColorUnclamped[2] = params[2]; @@ -161,7 +161,7 @@ _mesa_Fogfv( GLenum pname, const GLfloat *params ) } if (ctx->Fog.FogCoordinateSource == p) return; - FLUSH_VERTICES(ctx, _NEW_FOG); + FLUSH_VERTICES(ctx, _NEW_FOG, GL_FOG_BIT); ctx->Fog.FogCoordinateSource = p; break; } @@ -174,7 +174,7 @@ _mesa_Fogfv( GLenum pname, const GLfloat *params ) } if (ctx->Fog.FogDistanceMode == p) return; - FLUSH_VERTICES(ctx, _NEW_FOG); + FLUSH_VERTICES(ctx, _NEW_FOG, GL_FOG_BIT); ctx->Fog.FogDistanceMode = p; break; } |