Mesa (intel-2008-q4): Fix typeo in mipmap filter for GL_UNSIGNED_SHORT_1_5_5_5_REV
Eric Anholt
anholt at kemper.freedesktop.org
Tue Dec 23 23:05:44 UTC 2008
Module: Mesa
Branch: intel-2008-q4
Commit: 6f5c0d4c53bb3565fe79d3baa28354fd726175c4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6f5c0d4c53bb3565fe79d3baa28354fd726175c4
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Fri Dec 19 12:58:01 2008 -0800
Fix typeo in mipmap filter for GL_UNSIGNED_SHORT_1_5_5_5_REV
(cherry picked from commit a330933bb75c38148668637cd22b90d75d39506f)
---
src/mesa/main/mipmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c
index 13d90e7..78d14b2 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;
More information about the mesa-commit
mailing list