mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
mesa: fix bad mask bit in clip plane restore code for glPopAttrib()
This commit is contained in:
parent
69cbf3c686
commit
d82876e850
1 changed files with 1 additions and 1 deletions
|
|
@ -1265,7 +1265,7 @@ _mesa_PopAttrib(void)
|
|||
|
||||
/* restore clip planes */
|
||||
for (i = 0; i < MAX_CLIP_PLANES; i++) {
|
||||
const GLuint mask = 1 << 1;
|
||||
const GLuint mask = 1 << i;
|
||||
const GLfloat *eyePlane = xform->EyeUserPlane[i];
|
||||
COPY_4V(ctx->Transform.EyeUserPlane[i], eyePlane);
|
||||
if (xform->ClipPlanesEnabled & mask) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue