projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e897bf5
)
r300g: fix an invalid pointer in free
author
Marek Olšák
<maraeo@gmail.com>
Mon, 16 Aug 2010 03:05:43 +0000
(
05:05
+0200)
committer
Marek Olšák
<maraeo@gmail.com>
Mon, 16 Aug 2010 03:05:43 +0000
(
05:05
+0200)
src/gallium/drivers/r300/r300_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_context.c
b/src/gallium/drivers/r300/r300_context.c
index d783f21f5fd0d992b6b26e9bc45d8bc75fc3314f..a83ad892eaa28e0bd66b39fe06b58edbe745c623 100644
(file)
--- 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);
}
}