nv50: fix typo in REALLOC's 2nd argument in ctor_immd
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 14 Aug 2009 13:26:58 +0000 (15:26 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 14 Aug 2009 13:54:49 +0000 (15:54 +0200)
src/gallium/drivers/nv50/nv50_program.c

index 4ec9c03305fb8f765f7756b6d141f614043e3ba9..fefccd0b2a8dc49e96c53561f7874a4720634c41 100644 (file)
@@ -296,7 +296,7 @@ kill_temp_temp(struct nv50_pc *pc)
 static int
 ctor_immd(struct nv50_pc *pc, float x, float y, float z, float w)
 {
-       pc->immd_buf = REALLOC(pc->immd_buf, (pc->immd_nr * r * sizeof(float)),
+       pc->immd_buf = REALLOC(pc->immd_buf, (pc->immd_nr * 4 * sizeof(float)),
                               (pc->immd_nr + 1) * 4 * sizeof(float));
        pc->immd_buf[(pc->immd_nr * 4) + 0] = x;
        pc->immd_buf[(pc->immd_nr * 4) + 1] = y;