fix typo causing a segfault when a vertex program uses more than 96 parameters

This commit is contained in:
Roland Scheidegger 2006-08-30 10:26:31 +00:00
parent 8334c8a216
commit ef3f00f67e

View 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. */