aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/program.c
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2004-12-02 13:29:40 +0000
committerAlan Hourihane <[email protected]>2004-12-02 13:29:40 +0000
commit22ae633d1ea636e0e07ba044a0f8fa2195c83bc6 (patch)
tree3b3bb53b6b73cffb24b6be0de28b4bd57d08c671 /src/mesa/shader/program.c
parentba807fbe2914cf1135297428f7a3163707203073 (diff)
Fix some warnings
Diffstat (limited to 'src/mesa/shader/program.c')
-rw-r--r--src/mesa/shader/program.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c
index 88085f811ae..c2f4b146b6c 100644
--- a/src/mesa/shader/program.c
+++ b/src/mesa/shader/program.c
@@ -541,8 +541,7 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[],
_mesa_problem(ctx, "Invalid material state in fetch_state");
return;
}
- };
- return;
+ }
case STATE_LIGHT:
{
/* state[1] is the light number */
@@ -590,7 +589,6 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[],
return;
}
}
- return;
case STATE_LIGHTMODEL_AMBIENT:
COPY_4V(value, ctx->Light.Model.Ambient);
return;
@@ -650,7 +648,6 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[],
return;
}
}
- return;
case STATE_TEXGEN:
{
/* state[1] is the texture unit */
@@ -686,7 +683,6 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[],
return;
}
}
- return;
case STATE_TEXENV_COLOR:
{
/* state[1] is the texture unit */