From: Lars Henning Wendt Date: Thu, 16 Apr 2009 16:14:17 +0000 (-0600) Subject: mesa: fix bad mask bit in clip plane restore code for glPopAttrib() X-Git-Tag: android-x86-1.6~16^2~406^2~691 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d82876e850960eb5e3799c4ab02b618c4b548fd8;p=android-x86%2Fexternal-mesa.git mesa: fix bad mask bit in clip plane restore code for glPopAttrib() --- diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index d5d0a552dbf..e43fa96dd31 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -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) {