summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_state.c
diff options
context:
space:
mode:
authorNicolai Hähnle <nhaehnle@gmail.com>2009-07-27 20:23:49 +0200
committerNicolai Hähnle <nhaehnle@gmail.com>2009-07-30 23:45:18 +0200
commit188f8c679254f193cdcfcd4ef338f3c8c5e1146d (patch)
tree6377cb039edd52cecfa8cf9d97c1352bc87cb951 /src/gallium/drivers/r300/r300_state.c
parentcab62aa28f5ccdf7ca185ac965b852e2318816f3 (diff)
r300g: Use r300compiler for vertex shaders
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r--src/gallium/drivers/r300/r300_state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index 162740f594..33f1d7e79f 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -688,6 +688,7 @@ static void r300_delete_vs_state(struct pipe_context* pipe, void* shader)
if (r300_screen(pipe->screen)->caps->has_tcl) {
struct r300_vertex_shader* vs = (struct r300_vertex_shader*)shader;
+ rc_constants_destroy(&vs->code.constants);
draw_delete_vertex_shader(r300->draw, vs->draw);
FREE(vs->state.tokens);
FREE(shader);