r5xx: Fix typo.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Tue, 6 May 2008 19:18:07 +0000 (12:18 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Tue, 6 May 2008 19:18:07 +0000 (12:18 -0700)
Gotta be more careful with my cut'n'paste, lawl.

src/mesa/drivers/dri/r300/r500_fragprog.c

index 0e2bda1c64769645a6884c4d7d91f3cb446af566..9ad081e9b898cdc14b107d0b03a3399d6b4b89e3 100644 (file)
@@ -183,7 +183,7 @@ static GLuint make_dest(struct r500_fragment_program *fp, struct prog_dst_regist
                        // reg = (dest.Index << 0x1) | 0x1;
                        reg = dest.Index;
                        if (dest.Index > fp->max_temp_idx)
-                               fp->max_temp_idx = src.Index;
+                               fp->max_temp_idx = dest.Index;
                        break;
                case PROGRAM_OUTPUT:
                        /* Eventually we may need to handle multiple