summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_context.c
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-03-18 13:37:59 -0700
committerCorbin Simpson <[email protected]>2009-03-18 15:44:04 -0700
commit3a648d0cf23c39a139e4638c2194e4ce97c1d983 (patch)
tree1eb8f589dc620f4be74a3b452c9a084dec85af5f /src/gallium/drivers/r300/r300_context.c
parent5b97ba4eb0b3d5285e93057a7d2b38a3fc6f5056 (diff)
r300-gallium: Viewport state storage.
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 5797de7dde7..b8584702aad 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -98,6 +98,7 @@ static void r300_destroy_context(struct pipe_context* context) {
FREE(r300->blend_color_state);
FREE(r300->rs_block);
FREE(r300->scissor_state);
+ FREE(r300->viewport_state);
FREE(r300);
}
@@ -129,6 +130,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
r300->blend_color_state = CALLOC_STRUCT(r300_blend_color_state);
r300->rs_block = CALLOC_STRUCT(r300_rs_block);
r300->scissor_state = CALLOC_STRUCT(r300_scissor_state);
+ r300->viewport_state = CALLOC_STRUCT(r300_viewport_state);
r300_init_flush_functions(r300);