mesa: glsl: add missing code emit for struct/field
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 4 Aug 2008 19:06:19 +0000 (13:06 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 4 Aug 2008 23:14:48 +0000 (17:14 -0600)
src/mesa/shader/slang/slang_emit.c

index 323fc511a6e615de24166186ed8e5759f6bfb92f..b1ebad7f17769947ed37d888acceca9022c0662d 100644 (file)
@@ -1621,6 +1621,10 @@ emit_struct_field(slang_emit_info *emitInfo, slang_ir_node *n)
          return NULL;
       }
    }
+   else {
+      /* do codegen for struct */
+      emit(emitInfo, n->Children[0]);
+   }
 
    return NULL; /* no instruction */
 }