summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_codegen.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-06-23 13:33:28 -0600
committerBrian Paul <[email protected]>2009-06-26 13:16:33 -0600
commit2102e301a7f218c26878deaed2d94c15cd53f292 (patch)
tree4f98c71b87c7eeb70a1ce9f8430a0e348807ef4a /src/mesa/shader/slang/slang_codegen.h
parent541594b04432710b5dba74277443420c9aa97e04 (diff)
glsl: fix a bug involving 'continue' in 'for' loops
Need to execute the for loop's increment code before we continue. Add a slang_assemble_ctx::CurLoopOper field to keep track of the containing loop and avoid the "cont if true" path in this situation. Plus, assorted clean-ups.
Diffstat (limited to 'src/mesa/shader/slang/slang_codegen.h')
-rw-r--r--src/mesa/shader/slang/slang_codegen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.h b/src/mesa/shader/slang/slang_codegen.h
index bb736585aa1..64418d527b7 100644
--- a/src/mesa/shader/slang/slang_codegen.h
+++ b/src/mesa/shader/slang/slang_codegen.h
@@ -40,6 +40,7 @@ typedef struct slang_assemble_ctx_
slang_var_table *vartable;
slang_info_log *log;
struct slang_label_ *curFuncEndLabel;
+ const slang_operation *CurLoopOper;
struct slang_ir_node_ *CurLoop;
struct slang_function_ *CurFunction;
GLboolean UnresolvedRefs;