diff options
author | Brian Paul <[email protected]> | 2003-10-10 18:11:17 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-10-10 18:11:17 +0000 |
commit | e6804945b332c90c72dd919feff565e6151414cf (patch) | |
tree | 0c49dfeff95ec3c238b3976b742ff3970971e060 /src/mesa/main | |
parent | db40aec48c3db8164968df24184750a41be6e99f (diff) |
add switch defaults to silence warnings
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/program.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/program.c b/src/mesa/main/program.c index 5e7ea3943eb..e07a4a0a6a7 100644 --- a/src/mesa/main/program.c +++ b/src/mesa/main/program.c @@ -726,6 +726,9 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[], case STATE_LOCAL: COPY_4V(value, ctx->FragmentProgram.Current->Base.LocalParams[idx]); break; + default: + _mesa_problem(ctx, "Bad state switch in _mesa_fetch_state()"); + return; } } return; @@ -744,6 +747,9 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[], case STATE_LOCAL: COPY_4V(value, ctx->VertexProgram.Current->Base.LocalParams[idx]); break; + default: + _mesa_problem(ctx, "Bad state switch in _mesa_fetch_state()"); + return; } } return; |