mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 12:50:10 +01:00
i965: Fix logic_op check.
Fixes "Macro compares unsigned to 0" defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
9943b6612b
commit
68f1b274b0
1 changed files with 1 additions and 2 deletions
|
|
@ -417,8 +417,7 @@ intelEmitImmediateColorExpandBlit(struct brw_context *brw,
|
|||
return false;
|
||||
}
|
||||
|
||||
assert( logic_op - GL_CLEAR >= 0 );
|
||||
assert( logic_op - GL_CLEAR < 0x10 );
|
||||
assert((logic_op >= GL_CLEAR) && (logic_op <= (GL_CLEAR + 0x0f)));
|
||||
assert(dst_pitch > 0);
|
||||
|
||||
if (w < 0 || h < 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue