mesa: fix bad mask bit in clip plane restore code for glPopAttrib()

This commit is contained in:
Lars Henning Wendt 2009-04-16 10:14:17 -06:00 committed by Brian Paul
parent 69cbf3c686
commit d82876e850

View file

@ -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) {