diff options
author | Brian <brian@yutani.localnet.net> | 2007-01-11 11:22:26 -0700 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-01-11 11:22:26 -0700 |
commit | 95a441112efbe14407f53d035e368b9632d06f06 (patch) | |
tree | 8ce0e57e44974a63d384325f77336daac19e2b56 /src/mesa/shader/slang/slang_compile_variable.c | |
parent | 063f3f7fc49e1fd5cf99cffd241e16af5e2d1823 (diff) |
Fix a problem with inlined "return" statements. Make some attempt to free temporaries.
Diffstat (limited to 'src/mesa/shader/slang/slang_compile_variable.c')
-rw-r--r-- | src/mesa/shader/slang/slang_compile_variable.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_compile_variable.c b/src/mesa/shader/slang/slang_compile_variable.c index f9f02066a3..046db2cefc 100644 --- a/src/mesa/shader/slang/slang_compile_variable.c +++ b/src/mesa/shader/slang/slang_compile_variable.c @@ -364,6 +364,9 @@ build_quant(slang_export_data_quant * q, const slang_variable * var) q->size = var->size; if (spec->type == slang_spec_array) { q->array_len = var->array_len; +#if 1 + if (var->array_len > 0) +#endif q->size /= var->array_len; spec = spec->_array; } |