projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be97d2c
)
glsl: Assert pointer is not null before dereferencing.
author
Vinson Lee
<vlee@vmware.com>
Sat, 27 Feb 2010 08:08:14 +0000
(
00:08
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Sat, 27 Feb 2010 08:08:14 +0000
(
00:08
-0800)
src/mesa/shader/slang/slang_codegen.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_codegen.c
b/src/mesa/shader/slang/slang_codegen.c
index adfea890b3c329dac9b5175875fb5edc8dfbdb16..9ca5c1372d8a2c283846009d91d5ac8a0495c3a6 100644
(file)
--- a/
src/mesa/shader/slang/slang_codegen.c
+++ b/
src/mesa/shader/slang/slang_codegen.c
@@
-3184,6
+3184,7
@@
_slang_unroll_for_loop(slang_assemble_ctx * A, const slang_operation *oper)
varId = oper->children[0].children[0].a_id;
var = _slang_variable_locate(oper->children[0].children[0].locals,
varId, GL_TRUE);
+ assert(var);
start = (GLint) var->initializer->literal[0];
}
else {