summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-04-16 10:16:26 -0600
committerBrian Paul <brianp@vmware.com>2009-04-16 10:16:26 -0600
commitecf47b504656b47410664cbe3e5b7bfad5cc0db4 (patch)
tree963325846146e6d1cb6170a03d98f8c18012c619
parentfed8dc53ad46e71bed8d53e4ccdbe4547ad11814 (diff)
downloadmesa-ecf47b504656b47410664cbe3e5b7bfad5cc0db4.tar.gz
mesa: fix bad mask bit in clip plane restore code for glPopAttrib()
(cherry picked from master commit d82876e850960eb5e3799c4ab02b618c4b548fd8)
-rw-r--r--src/mesa/main/attrib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c
index ef1273d82d3..a54951205f0 100644
--- a/src/mesa/main/attrib.c
+++ b/src/mesa/main/attrib.c
@@ -1176,7 +1176,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) {