diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-08-04 13:06:48 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-08-04 17:14:49 -0600 |
commit | c610c0d77d2e2d9fe0052f7d1316b3d348b536a0 (patch) | |
tree | 3f0bf0c7ae0a6bf9c10a9c4e1aba2a454ac0152d /src | |
parent | 95ecc33330b3eea4ddc21e2345adf2a9c04a38c3 (diff) |
mesa: glsl: set literal_size for const vars
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/slang/slang_simplify.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_simplify.c b/src/mesa/shader/slang/slang_simplify.c index bc651962a1..6ef95c48f9 100644 --- a/src/mesa/shader/slang/slang_simplify.c +++ b/src/mesa/shader/slang/slang_simplify.c @@ -145,6 +145,7 @@ _slang_simplify(slang_operation *oper, oper->literal[1] = var->initializer->literal[1]; oper->literal[2] = var->initializer->literal[2]; oper->literal[3] = var->initializer->literal[3]; + oper->literal_size = var->initializer->literal_size; oper->type = var->initializer->type; /* printf("value[%s] = %f\n", |