mesa: Fix typo in bitmask.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 10 Jun 2009 20:25:54 +0000 (21:25 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 10 Jun 2009 20:25:54 +0000 (21:25 +0100)
src/mesa/main/image.c

index 332febf91f9ac6d27d49cc876f34d84411ffe943..01fbe40a03b418f72ef98f9d1f81246dfaf0b9b7 100644 (file)
@@ -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;