mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
glsl: Add assert to check input to strcmp.
This commit is contained in:
parent
df62b0da92
commit
df20c3943a
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue