diff options
author | Vinson Lee <[email protected]> | 2010-02-27 00:31:14 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-27 00:31:14 -0800 |
commit | 24a8b470ba592b4eb3560f7c5762e17ec0977a51 (patch) | |
tree | 4dec782305fb1c034d5d180d24076f2adfe88dd0 /src | |
parent | fd29be3831a583a1ad1d7055bd234724ce7ccfae (diff) |
glsl: Assert input to strcmp is not null.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/slang/slang_builtin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_builtin.c b/src/mesa/shader/slang/slang_builtin.c index 0a9f0b97fb9..5533cc5b655 100644 --- a/src/mesa/shader/slang/slang_builtin.c +++ b/src/mesa/shader/slang/slang_builtin.c @@ -121,6 +121,7 @@ lookup_statevar(const char *var, GLint index1, GLint index2, const char *field, } else if (strcmp(var, "gl_DepthRange") == 0) { tokens[0] = STATE_DEPTH_RANGE; + assert(field); if (strcmp(field, "near") == 0) { *swizzleOut = SWIZZLE_XXXX; } |