ir_to_mesa: Remove debug force-enablement of EmitNoIfs.
authorEric Anholt <eric@anholt.net>
Thu, 5 Aug 2010 05:35:32 +0000 (22:35 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 5 Aug 2010 16:17:45 +0000 (09:17 -0700)
src/mesa/program/ir_to_mesa.cpp

index 2fd07ca6115849c00907ff634f7e85a3ffe0f595..f0e013369aa8275799c3a2edaaa8ec2e5cd864f5 100644 (file)
@@ -2614,7 +2614,7 @@ _mesa_glsl_compile_shader(GLcontext *ctx, struct gl_shader *shader)
         progress = do_constant_folding(shader->ir) || progress;
         progress = do_algebraic(shader->ir) || progress;
         progress = do_if_return(shader->ir) || progress;
-        if (1 || ctx->Shader.EmitNoIfs)
+        if (ctx->Shader.EmitNoIfs)
            progress = do_if_to_cond_assign(shader->ir) || progress;
 
         progress = do_vec_index_to_swizzle(shader->ir) || progress;