projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db40aec
)
add switch defaults to silence warnings
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 10 Oct 2003 18:11:17 +0000
(18:11 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 10 Oct 2003 18:11:17 +0000
(18:11 +0000)
src/mesa/main/program.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/program.c
b/src/mesa/main/program.c
index 5e7ea3943eba69ee1b2fb03330aa3a070d950af9..e07a4a0a6a77c87c09e1b690a6898757beec4fb3 100644
(file)
--- 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;