summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2008-12-19 12:58:01 -0800
committerIan Romanick <[email protected]>2008-12-19 13:06:53 -0800
commita330933bb75c38148668637cd22b90d75d39506f (patch)
treeae891211364488ef55e159fbafa6262f6f6d7f87 /src/mesa
parent7e04272690e8d9deecc0bf71c37bfa4c321ae6ab (diff)
Fix typeo in mipmap filter for GL_UNSIGNED_SHORT_1_5_5_5_REV
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/mipmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c
index 13d90e78fe4..78d14b21c45 100644
--- a/src/mesa/main/mipmap.c
+++ b/src/mesa/main/mipmap.c
@@ -361,7 +361,7 @@ do_row(GLenum datatype, GLuint comps, GLint srcWidth,
const GLint rowAr0 = rowA[j] & 0x1f;
const GLint rowAr1 = rowA[k] & 0x1f;
const GLint rowBr0 = rowB[j] & 0x1f;
- const GLint rowBr1 = rowB[k] & 0xf;
+ const GLint rowBr1 = rowB[k] & 0x1f;
const GLint rowAg0 = (rowA[j] >> 5) & 0x1f;
const GLint rowAg1 = (rowA[k] >> 5) & 0x1f;
const GLint rowBg0 = (rowB[j] >> 5) & 0x1f;