mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 04:08:25 +02:00
fix typo causing a segfault when a vertex program uses more than 96 parameters
This commit is contained in:
parent
8334c8a216
commit
ef3f00f67e
1 changed files with 1 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue