[r300] fix wow-pinkness regression. Fixed by Markus Amsler
authorChristoph Brill <egore911@egore911.de>
Tue, 26 Feb 2008 21:10:54 +0000 (22:10 +0100)
committerChristoph Brill <egore911@egore911.de>
Tue, 26 Feb 2008 21:10:54 +0000 (22:10 +0100)
src/mesa/drivers/dri/r300/r300_state.c

index 3410d5ff57cc18af83db2416fff731c278dadeda..dc6a31e130166d141c92add7dd2c21b513b20947 100644 (file)
@@ -711,7 +711,7 @@ static void r300Fogfv(GLcontext * ctx, GLenum pname, const GLfloat * param)
                        R300_STATECHANGE(r300, fogs);
                        r300->hw.fogs.cmd[R300_FOGS_STATE] =
                            (r300->hw.fogs.
-                            cmd[FG_FOG_BLEND] & ~FG_FOG_BLEND_FN_MASK) |
+                            cmd[R300_FOGS_STATE] & ~FG_FOG_BLEND_FN_MASK) |
                            FG_FOG_BLEND_FN_LINEAR;
 
                        if (ctx->Fog.Start == ctx->Fog.End) {
@@ -729,7 +729,7 @@ static void r300Fogfv(GLcontext * ctx, GLenum pname, const GLfloat * param)
                        R300_STATECHANGE(r300, fogs);
                        r300->hw.fogs.cmd[R300_FOGS_STATE] =
                            (r300->hw.fogs.
-                            cmd[FG_FOG_BLEND] & ~FG_FOG_BLEND_FN_MASK) |
+                            cmd[R300_FOGS_STATE] & ~FG_FOG_BLEND_FN_MASK) |
                            FG_FOG_BLEND_FN_EXP;
                        fogScale.f = 0.0933 * ctx->Fog.Density;
                        fogStart.f = 0.0;
@@ -738,7 +738,7 @@ static void r300Fogfv(GLcontext * ctx, GLenum pname, const GLfloat * param)
                        R300_STATECHANGE(r300, fogs);
                        r300->hw.fogs.cmd[R300_FOGS_STATE] =
                            (r300->hw.fogs.
-                            cmd[FG_FOG_BLEND] & ~FG_FOG_BLEND_FN_MASK) |
+                            cmd[R300_FOGS_STATE] & ~FG_FOG_BLEND_FN_MASK) |
                            FG_FOG_BLEND_FN_EXP2;
                        fogScale.f = 0.3 * ctx->Fog.Density;
                        fogStart.f = 0.0;
@@ -803,7 +803,7 @@ static void r300SetFogState(GLcontext * ctx, GLboolean state)
 
        R300_STATECHANGE(r300, fogs);
        if (state) {
-               r300->hw.fogs.cmd[FG_FOG_BLEND] |= FG_FOG_BLEND_ENABLE;
+               r300->hw.fogs.cmd[R300_FOGS_STATE] |= FG_FOG_BLEND_ENABLE;
 
                r300Fogfv(ctx, GL_FOG_MODE, NULL);
                r300Fogfv(ctx, GL_FOG_DENSITY, &ctx->Fog.Density);
@@ -811,7 +811,7 @@ static void r300SetFogState(GLcontext * ctx, GLboolean state)
                r300Fogfv(ctx, GL_FOG_END, &ctx->Fog.End);
                r300Fogfv(ctx, GL_FOG_COLOR, ctx->Fog.Color);
        } else {
-               r300->hw.fogs.cmd[FG_FOG_BLEND] &= ~FG_FOG_BLEND_ENABLE;
+               r300->hw.fogs.cmd[R300_FOGS_STATE] &= ~FG_FOG_BLEND_ENABLE;
        }
 }