fix typo causing a segfault when a vertex program uses more than 96 parameters
authorRoland Scheidegger <rscheidegger@gmx.ch>
Wed, 30 Aug 2006 10:26:31 +0000 (10:26 +0000)
committerRoland Scheidegger <rscheidegger@gmx.ch>
Wed, 30 Aug 2006 10:26:31 +0000 (10:26 +0000)
src/mesa/drivers/dri/r200/r200_vertprog.c

index b0f13e5f0a3c76ab1b3913608b4e20976a02db9b..4d87d2ecf0b2336d5d8aeb7e49b39e59ee8c8796 100644 (file)
@@ -132,7 +132,7 @@ static GLboolean r200VertexProgUpdateParams(GLcontext *ctx, struct r200_vertex_p
         break;
       }
       if (pi == 95) {
-        fcmd = (GLfloat *)rmesa->hw.vpp[1].cmd[VPP_CMD_0 + 1];
+        fcmd = (GLfloat *)&rmesa->hw.vpp[1].cmd[VPP_CMD_0 + 1];
       }
    }
    /* hack up the cmd_size so not the whole state atom is emitted always. */