summaryrefslogtreecommitdiff
path: root/src/mesa/main/attrib.c
diff options
context:
space:
mode:
authorLars Henning Wendt <lhwendt@igd.fhg.de>2009-04-16 10:14:17 -0600
committerBrian Paul <brianp@vmware.com>2009-04-16 10:15:10 -0600
commitd82876e850960eb5e3799c4ab02b618c4b548fd8 (patch)
tree349a6614ecd0480f44426237044bf4d023d0446d /src/mesa/main/attrib.c
parent69cbf3c68675915517ae64c81d7a8a42de4e01a3 (diff)
mesa: fix bad mask bit in clip plane restore code for glPopAttrib()
Diffstat (limited to 'src/mesa/main/attrib.c')
-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 d5d0a552db..e43fa96dd3 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) {