glsl: s/int/unsigned/ to silence warning
[mesa.git] / src / glsl / opt_constant_variable.cpp
index 8068d0c1435fba86a2e09f2f48249a05285419d1..3fa7c3badc804c4ae5aa6d55d67876bffb18fc1d 100644 (file)
@@ -104,11 +104,8 @@ ir_constant_variable_visitor::visit_enter(ir_assignment *ir)
    /* OK, now find if we actually have all the right conditions for
     * this to be a constant value assigned to the var.
     */
-   if (ir->condition) {
-      constval = ir->condition->constant_expression_value();
-      if (!constval || !constval->value.b[0])
-        return visit_continue;
-   }
+   if (ir->condition)
+      return visit_continue;
 
    ir_variable *var = ir->whole_variable_written();
    if (!var)