Mesa (mesa_7_5_branch): mesa: Fix typo in bitmask.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Jun 10 13:32:02 PDT 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: 8fa8669aeba45d1b57f3cc41429578d55cad378a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8fa8669aeba45d1b57f3cc41429578d55cad378a

Author: José Fonseca <jfonseca at vmware.com>
Date:   Wed Jun 10 21:25:54 2009 +0100

mesa: Fix typo in bitmask.

---

 src/mesa/main/image.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 332febf..01fbe40 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -2872,7 +2872,7 @@ extract_uint_indexes(GLuint n, GLuint indexes[],
             }
             else {
                for (i = 0; i < n; i++)
-                  indexes[i] = s[i] & 0xfff;  /* lower 8 bits */
+                  indexes[i] = s[i] & 0xff;  /* lower 8 bits */
             }
          }
          break;



More information about the mesa-commit mailing list