From 62bf6cf6c7b560f59ec72ad138e40383ee47de12 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 19 Dec 2008 16:14:48 -0700 Subject: [PATCH] gallium: Fix typeo in mipmap filter for GL_UNSIGNED_SHORT_1_5_5_5_REV This is copied from Ian's commit a330933bb75c38148668637cd22b90d75d39506f --- src/gallium/auxiliary/util/u_gen_mipmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c index 5afc52b..b0de596 100644 --- a/src/gallium/auxiliary/util/u_gen_mipmap.c +++ b/src/gallium/auxiliary/util/u_gen_mipmap.c @@ -420,7 +420,7 @@ do_row(enum dtype datatype, uint comps, int srcWidth, const int rowAr0 = rowA[j] & 0x1f; const int rowAr1 = rowA[k] & 0x1f; const int rowBr0 = rowB[j] & 0x1f; - const int rowBr1 = rowB[k] & 0xf; + const int rowBr1 = rowB[k] & 0x1f; const int rowAg0 = (rowA[j] >> 5) & 0x1f; const int rowAg1 = (rowA[k] >> 5) & 0x1f; const int rowBg0 = (rowB[j] >> 5) & 0x1f; -- 2.7.4