Mesa (lp-binning): llvmpipe: remove redundant code in llvmpipe_set_blend_color()

Brian Paul brianp at kemper.freedesktop.org
Fri Jan 15 02:24:01 UTC 2010


Module: Mesa
Branch: lp-binning
Commit: dfd6e762e70aef6694fa3baedf8d423b08995233
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dfd6e762e70aef6694fa3baedf8d423b08995233

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Jan 14 16:21:49 2010 -0700

llvmpipe: remove redundant code in llvmpipe_set_blend_color()

---

 src/gallium/drivers/llvmpipe/lp_state_blend.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_state_blend.c b/src/gallium/drivers/llvmpipe/lp_state_blend.c
index a10c591..9b950e8 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);




More information about the mesa-commit mailing list