From c610c0d77d2e2d9fe0052f7d1316b3d348b536a0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 4 Aug 2008 13:06:48 -0600 Subject: mesa: glsl: set literal_size for const vars --- src/mesa/shader/slang/slang_simplify.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/shader/slang/slang_simplify.c') diff --git a/src/mesa/shader/slang/slang_simplify.c b/src/mesa/shader/slang/slang_simplify.c index bc651962a17..6ef95c48f91 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", -- cgit v1.2.3