aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texparam.c
diff options
context:
space:
mode:
authorYuanhan Liu <[email protected]>2011-10-21 11:24:18 +0800
committerYuanhan Liu <[email protected]>2011-11-03 10:18:58 +0800
commitd9f05ac828986a2fcdca9fcae29d76f79847d8d3 (patch)
treed80a87bed583e88178e6f75348b27c2557192d7b /src/mesa/main/texparam.c
parent34a5598d86b2957d5b418c8814832a0ce8330881 (diff)
mesa: remove the redundant check
Signed-off-by: Yuanhan Liu <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/texparam.c')
-rw-r--r--src/mesa/main/texparam.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
index a2424484422..6da730d6711 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;