mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 13:20:10 +01:00
mesa: remove the redundant check
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
34a5598d86
commit
d9f05ac828
1 changed files with 5 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue