Mesa (gallium-mesa-7.4): mesa: fix bad mask bit in clip plane restore code for glPopAttrib()
Alan Hourihane
alanh at kemper.freedesktop.org
Fri Apr 17 00:34:53 UTC 2009
Module: Mesa
Branch: gallium-mesa-7.4
Commit: ecf47b504656b47410664cbe3e5b7bfad5cc0db4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ecf47b504656b47410664cbe3e5b7bfad5cc0db4
Author: Brian Paul <brianp at vmware.com>
Date: Thu Apr 16 10:16:26 2009 -0600
mesa: fix bad mask bit in clip plane restore code for glPopAttrib()
(cherry picked from master commit d82876e850960eb5e3799c4ab02b618c4b548fd8)
---
src/mesa/main/attrib.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c
index ef1273d..a549512 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) {
More information about the mesa-commit
mailing list