glsl: Add assert to check input to strcmp.

This commit is contained in:
Vinson Lee 2010-03-04 00:53:52 -08:00
parent df62b0da92
commit df20c3943a

View file

@ -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;
}