glsl2: add case for ir_unop_noise
authorBrian Paul <brianp@vmware.com>
Tue, 14 Sep 2010 15:15:19 +0000 (09:15 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 14 Sep 2010 15:15:20 +0000 (09:15 -0600)
Silences a compiler warning.  Still need to add some assertions
for this case.

src/glsl/ir_validate.cpp

index 1c50957d13be0636cac1d4ae2bf6004b20b3ae64..58ab8aa58f86492f780d0ae5de39b03a4480c09a 100644 (file)
@@ -275,6 +275,10 @@ ir_validate::visit_leave(ir_expression *ir)
       assert(ir->operands[0]->type == ir->type);
       break;
 
+   case ir_unop_noise:
+      /* XXX what can we assert here? */
+      break;
+
    case ir_binop_add:
    case ir_binop_sub:
    case ir_binop_mul: