projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df62b0d
)
glsl: Add assert to check input to strcmp.
author
Vinson Lee
<vlee@vmware.com>
Thu, 4 Mar 2010 08:53:52 +0000
(
00:53
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 4 Mar 2010 08:53:52 +0000
(
00:53
-0800)
src/mesa/shader/slang/slang_builtin.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_builtin.c
b/src/mesa/shader/slang/slang_builtin.c
index f0659a8d8bb3cb318d42b761bf85781ef9c086d3..791e751526d834b45db487e187516cb37679e5fe 100644
(file)
--- a/
src/mesa/shader/slang/slang_builtin.c
+++ b/
src/mesa/shader/slang/slang_builtin.c
@@
-182,6
+182,7
@@
lookup_statevar(const char *var, GLint index1, GLint index2, const char *field,
tokens[1] = 0;
else
tokens[1] = 1;
+ assert(field);
if (strcmp(field, "emission") == 0) {
tokens[2] = STATE_EMISSION;
}