mesa: glsl: fix initialize size error check
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 4 Aug 2008 16:58:13 +0000 (10:58 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 4 Aug 2008 23:14:48 +0000 (17:14 -0600)
src/mesa/shader/slang/slang_codegen.c

index 92c96bef9ee0cc0ee932bc37e5e872644b466b72..70feed732665742f4297ca20fa9d3dcdcecd2be5 100644 (file)
@@ -2687,7 +2687,7 @@ _slang_gen_declaration(slang_assemble_ctx *A, slang_operation *oper)
       if (!rhs)
          return NULL;
 
-      if (!rhs->Store || var->Store->Size != rhs->Store->Size) {
+      if (rhs->Store && var->Store->Size != rhs->Store->Size) {
          slang_info_log_error(A->log, "invalid assignment (wrong types)");
          return NULL;
       }