diff options
author | Roland Scheidegger <[email protected]> | 2006-08-30 10:26:31 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2006-08-30 10:26:31 +0000 |
commit | ef3f00f67e26e8944c98012e42433291ba92de0b (patch) | |
tree | 744536fcdfcc914722fa3963d683499e525d3fb7 /src/mesa | |
parent | 8334c8a2169055cd87e55d32403d59b8e46deb59 (diff) |
fix typo causing a segfault when a vertex program uses more than 96 parameters
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_vertprog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_vertprog.c b/src/mesa/drivers/dri/r200/r200_vertprog.c index b0f13e5f0a3..4d87d2ecf0b 100644 --- a/src/mesa/drivers/dri/r200/r200_vertprog.c +++ b/src/mesa/drivers/dri/r200/r200_vertprog.c @@ -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. */ |