summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-07-22 16:18:57 -0700
committerKenneth Graunke <[email protected]>2010-07-22 16:50:36 -0700
commit40c4298a6ea9e83b49858916d5423fd2135ef39c (patch)
treeca8c925f45dd15486bd94886f570ab44a496ff63 /src/glsl
parentfbe4240626bfe102a9c4c889ee18cb9ea27bddec (diff)
ir_print_visitor: Add "temporary" to mode string printing.
Variables with mode ir_var_temporary were causing an out of bounds array access and filling my screen with rubbish. I'm not sure if "temporary" is the right thing to print.
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ir_print_visitor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/ir_print_visitor.cpp b/src/glsl/ir_print_visitor.cpp
index 1eb073ff6a0..ee489cda7f3 100644
--- a/src/glsl/ir_print_visitor.cpp
+++ b/src/glsl/ir_print_visitor.cpp
@@ -85,7 +85,8 @@ void ir_print_visitor::visit(ir_variable *ir)
const char *const cent = (ir->centroid) ? "centroid " : "";
const char *const inv = (ir->invariant) ? "invariant " : "";
- const char *const mode[] = { "", "uniform ", "in ", "out ", "inout " };
+ const char *const mode[] = { "", "uniform ", "in ", "out ", "inout ",
+ "temporary " };
const char *const interp[] = { "", "flat", "noperspective" };
printf("(%s%s%s%s) ",