summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-08-06 11:15:42 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-08-06 11:15:42 -0600
commit93ed8f9fc9edddff62bbe4720c0b9029a1f8b6f5 (patch)
tree8f738525c6eaa39c4bdc2a790a427f60edf76f6c /src/mesa
parent8d1627c25a24f7bc14946bfe268d2d1c5dcde470 (diff)
mesa: glsl: fix SLANG_OPER_VARIABLE_DECL type checking case
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/slang/slang_typeinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_typeinfo.c b/src/mesa/shader/slang/slang_typeinfo.c
index 26f9f6ca85..8572118f3f 100644
--- a/src/mesa/shader/slang/slang_typeinfo.c
+++ b/src/mesa/shader/slang/slang_typeinfo.c
@@ -392,7 +392,6 @@ _slang_typeof_operation_(slang_operation * op,
switch (op->type) {
case SLANG_OPER_BLOCK_NO_NEW_SCOPE:
case SLANG_OPER_BLOCK_NEW_SCOPE:
- case SLANG_OPER_VARIABLE_DECL:
case SLANG_OPER_ASM:
case SLANG_OPER_BREAK:
case SLANG_OPER_CONTINUE:
@@ -477,6 +476,7 @@ _slang_typeof_operation_(slang_operation * op,
}
break;
case SLANG_OPER_IDENTIFIER:
+ case SLANG_OPER_VARIABLE_DECL:
{
slang_variable *var;
var = _slang_locate_variable(op->locals, op->a_id, GL_TRUE);