mesa: glsl: fix SLANG_OPER_VARIABLE_DECL type checking case
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 6 Aug 2008 17:15:42 +0000 (11:15 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 6 Aug 2008 17:15:42 +0000 (11:15 -0600)
src/mesa/shader/slang/slang_typeinfo.c

index 26f9f6ca850ed93b2a0474830fe6778f2fd4de19..8572118f3f30e48dca25f2fc09d45485256e405c 100644 (file)
@@ -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);