summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_state_blend.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-07-03 17:19:30 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-07-03 17:19:30 -0600
commit284efcfc27aaeb447e0898ae3342e9fee20c584a (patch)
tree1609853cf29787ed45d129b17e2549a2e3501d93 /src/mesa/pipe/softpipe/sp_state_blend.c
parentd378a2c0b87dfc0bee0e8310312fec566148cb63 (diff)
hook in state tracking for blend color
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_state_blend.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_state_blend.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_blend.c b/src/mesa/pipe/softpipe/sp_state_blend.c
index c364d8a319..6ca42e8a01 100644
--- a/src/mesa/pipe/softpipe/sp_state_blend.c
+++ b/src/mesa/pipe/softpipe/sp_state_blend.c
@@ -46,6 +46,17 @@ void softpipe_set_blend_state( struct pipe_context *pipe,
}
+void softpipe_set_blend_color( struct pipe_context *pipe,
+ const struct pipe_blend_color *blend_color )
+{
+ struct softpipe_context *softpipe = softpipe_context(pipe);
+
+ softpipe->blend_color = *blend_color;
+
+ softpipe->dirty |= G_NEW_BLEND;
+}
+
+
/** XXX move someday? Or consolidate all these simple state setters
* into one file.
*/