mesa: remove gratuitous stores I added in remove_instructions.
authorEric Anholt <eric@anholt.net>
Tue, 22 Dec 2009 22:43:11 +0000 (14:43 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 29 Dec 2009 02:51:18 +0000 (18:51 -0800)
src/mesa/shader/prog_optimize.c

index 4fe351251e8c8dca85334451d7d96b8610f674e2..83d119e031ea24637dd8b830cdbe93453f3f3cf3 100644 (file)
@@ -111,7 +111,6 @@ remove_instructions(struct gl_program *prog, const GLboolean *removeFlags)
    if (removeCount > 0) {
       GLint removeStart = removeEnd - removeCount + 1;
       _mesa_delete_instructions(prog, removeStart, removeCount);
-      removeStart = removeCount = 0; /* reset removal info */
    }
    return totalRemoved;
 }