summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-08-16 05:05:43 +0200
committerMarek Olšák <[email protected]>2010-08-16 05:05:43 +0200
commitecae1fca6f93eafb1916aa8621be04edd9228041 (patch)
tree8dfdcfc8d83106b68527ff4723f69a828f3fa09c /src/gallium/drivers
parente897bf524beae417252a1bf1b6bbd354902a57d7 (diff)
r300g: fix an invalid pointer in free
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r300/r300_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index d783f21f5fd..a83ad892eaa 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -153,7 +153,7 @@ static void r300_destroy_context(struct pipe_context* context)
FREE(r300->ztop_state.state);
FREE(r300->fs_constants.state);
FREE(r300->vs_constants.state);
- if (r300->vertex_stream_state.state) {
+ if (!r300->screen->caps.has_tcl) {
FREE(r300->vertex_stream_state.state);
}
}