From: Brian Paul Date: Fri, 19 Dec 2008 23:14:48 +0000 (-0700) Subject: gallium: Fix typeo in mipmap filter for GL_UNSIGNED_SHORT_1_5_5_5_REV X-Git-Tag: mesa-7.8~4139^2~496^2~158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8d80609883db4c827f8c25e816e588b025843c0;p=platform%2Fupstream%2Fmesa.git gallium: Fix typeo in mipmap filter for GL_UNSIGNED_SHORT_1_5_5_5_REV This is copied from Ian's commit a330933bb75c38148668637cd22b90d75d39506f --- 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;