projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3027e
)
fix an uninitialized variable and a warning
author
Brian
<brian@yutani.localnet.net>
Thu, 19 Apr 2007 00:05:33 +0000
(18:05 -0600)
committer
Brian
<brian@yutani.localnet.net>
Thu, 19 Apr 2007 00:05:33 +0000
(18:05 -0600)
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 2f7002ceeb32b7d26c04b805b557fd944330c3fc..a928abd55db277a42a8f9b72b17bdd08254f5ff6 100644
(file)
--- a/
src/mesa/shader/slang/slang_codegen.c
+++ b/
src/mesa/shader/slang/slang_codegen.c
@@
-1752,7
+1752,7
@@
static slang_ir_node *
_slang_gen_temporary(GLint size)
{
slang_ir_storage *store;
- slang_ir_node *n;
+ slang_ir_node *n
= NULL
;
store = _slang_new_ir_storage(PROGRAM_TEMPORARY, -1, size);
if (store) {
@@
-2905,7
+2905,7
@@
_slang_codegen_global_variable(slang_assemble_ctx *A, slang_variable *var,
if (dbg) printf("ATTRIB ");
}
else if (var->type.qualifier == SLANG_QUAL_FIXEDINPUT) {
- GLuint swizzle
;
+ GLuint swizzle
= SWIZZLE_XYZW; /* silence compiler warning */
GLint index = _slang_input_index(varName, GL_FRAGMENT_PROGRAM_ARB,
&swizzle);
GLint size = 4; /* XXX? */