projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eb7256
)
glsl: Silence gcc uninitialized variable warning.
author
Vinson Lee
<vlee@vmware.com>
Mon, 24 Aug 2009 17:43:02 +0000
(11:43 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 24 Aug 2009 19:04:50 +0000
(13:04 -0600)
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 ad2e306c19e57f05afb82944a47d20cd929c24e5..bef0f85653414629012504967cdd0cef3953b9c7 100644
(file)
--- a/
src/mesa/shader/slang/slang_builtin.c
+++ b/
src/mesa/shader/slang/slang_builtin.c
@@
-436,7
+436,7
@@
emit_statevars(const char *name, int array_len,
struct gl_program_parameter_list *paramList)
{
if (type->type == SLANG_SPEC_ARRAY) {
- GLint i, pos;
+ GLint i, pos
= -1
;
assert(array_len > 0);
if (strcmp(name, "gl_ClipPlane") == 0) {
tokens[0] = STATE_CLIPPLANE;