summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_context.c
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-01-17 02:25:52 -0800
committerCorbin Simpson <[email protected]>2009-02-01 23:30:23 -0800
commitf3b53a5cb6a04b86ccd75cc38c73c8e3dd117894 (patch)
tree3b09afc4ea7095ff6d52186cd02b7f0559ff39b8 /src/gallium/drivers/r300/r300_context.c
parenta08a830fd3c22bdbad1ee840e4e56302152375f1 (diff)
r300: Add blend color.
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r--src/gallium/drivers/r300/r300_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index 6dfc9ed6246..b072179f5be 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -27,6 +27,7 @@ static void r300_destroy_context(struct pipe_context* context) {
draw_destroy(r300->draw);
+ FREE(r300->blend_color_state);
FREE(r300->scissor_state);
FREE(r300);
}
@@ -48,6 +49,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
r300->draw = draw_create();
+ r300->blend_color_state = CALLOC_STRUCT(r300_blend_color_state);
r300->scissor_state = CALLOC_STRUCT(r300_scissor_state);
r300_init_surface_functions(r300);