utils/mojoshader-compiler.c
changeset 1006 0f65599179f9
parent 1001 61991d334619
--- a/utils/mojoshader-compiler.c	Wed Mar 02 23:58:16 2011 -0800
+++ b/utils/mojoshader-compiler.c	Wed Mar 02 23:59:22 2011 -0800
@@ -451,11 +451,7 @@
             print_unroll_attr(io, ast->forstmt.unroll);
             fprintf(io, "for (");
             print_ast(io, 1, ast->forstmt.var_decl);
-            if (ast->forstmt.initializer != NULL)
-            {
-                fprintf(io, " = ");
-                print_ast(io, 1, ast->forstmt.initializer);
-            } // if
+            print_ast(io, 1, ast->forstmt.initializer);
             fprintf(io, "; ");
             print_ast(io, 1, ast->forstmt.looptest);
             fprintf(io, "; ");