summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-01-31 11:01:27 -0800
committerKenneth Graunke <[email protected]>2011-01-31 11:04:37 -0800
commit60c8e91c795dc604c08977d5773f96a4de8e402b (patch)
tree81c0e0b908c466aa9f0a30a1f93f8196c41cee95 /src
parent8c115aa247d4a2cfee5d35c5fdd6f56951060c6c (diff)
glsl: Re-synchronize ir_variable_mode and the printer's string array.
Since the introduction of ir_var_system_value, system variables would be printed as "temporary" and temporaries would result in out-of-bounds array access, showing up as garbage in printed IR.
Diffstat (limited to 'src')
-rw-r--r--src/glsl/ir_print_visitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_print_visitor.cpp b/src/glsl/ir_print_visitor.cpp
index c56bafd00c5..d0373cb6310 100644
--- a/src/glsl/ir_print_visitor.cpp
+++ b/src/glsl/ir_print_visitor.cpp
@@ -97,7 +97,7 @@ 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 ",
- "temporary " };
+ "sys ", "temporary " };
const char *const interp[] = { "", "flat", "noperspective" };
printf("(%s%s%s%s) ",