From: Yuanhan Liu Date: Fri, 21 Oct 2011 03:24:18 +0000 (+0800) Subject: mesa: remove the redundant check X-Git-Tag: mesa-8.0-rc1~1267 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9f05ac828986a2fcdca9fcae29d76f79847d8d3;p=platform%2Fupstream%2Fmesa.git mesa: remove the redundant check Signed-off-by: Yuanhan Liu Reviewed-by: Brian Paul --- diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index a242448..6da730d 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -394,12 +394,11 @@ set_tex_parameteri(struct gl_context *ctx, return GL_FALSE; } ASSERT(comp < 4); - if (swz >= 0) { - flush(ctx); - texObj->Swizzle[comp] = params[0]; - set_swizzle_component(&texObj->_Swizzle, comp, swz); - return GL_TRUE; - } + + flush(ctx); + texObj->Swizzle[comp] = params[0]; + set_swizzle_component(&texObj->_Swizzle, comp, swz); + return GL_TRUE; } goto invalid_pname;