mesa: glsl: set literal_size for const vars
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 4 Aug 2008 19:06:48 +0000 (13:06 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 4 Aug 2008 23:14:49 +0000 (17:14 -0600)
src/mesa/shader/slang/slang_simplify.c

index bc651962a17d127d96e91a09a5e394cad321b6fe..6ef95c48f9157c152ed038322dfe2ecf4c3a93a9 100644 (file)
@@ -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",