From: Brian Paul Date: Thu, 14 Jan 2010 23:21:49 +0000 (-0700) Subject: llvmpipe: remove redundant code in llvmpipe_set_blend_color() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dfd6e762e70aef6694fa3baedf8d423b08995233;p=mesa.git llvmpipe: remove redundant code in llvmpipe_set_blend_color() --- diff --git a/src/gallium/drivers/llvmpipe/lp_state_blend.c b/src/gallium/drivers/llvmpipe/lp_state_blend.c index a10c5918df3..9b950e82d89 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_blend.c +++ b/src/gallium/drivers/llvmpipe/lp_state_blend.c @@ -80,9 +80,6 @@ void llvmpipe_set_blend_color( struct pipe_context *pipe, if(memcmp(&llvmpipe->blend_color, blend_color, sizeof *blend_color) == 0) return; - if(memcmp(&llvmpipe->blend_color, blend_color, sizeof *blend_color) == 0) - return; - draw_flush(llvmpipe->draw); memcpy(&llvmpipe->blend_color, blend_color, sizeof *blend_color);