diff options
author | Marek Olšák <[email protected]> | 2011-02-14 06:26:56 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-02-14 07:45:14 +0100 |
commit | 004dd015839dfb77b9d66fb2df6514feefb87d9e (patch) | |
tree | c6b5510098226795413ba9448837a8e2cb326ad9 /src | |
parent | 9a90eeee676450c254f9948ad8f996e88b437e61 (diff) |
r300g: fix reference counting when translating indices
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r300/r300_render_translate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_render_translate.c b/src/gallium/drivers/r300/r300_render_translate.c index dbc64ebf827..777857514fc 100644 --- a/src/gallium/drivers/r300/r300_render_translate.c +++ b/src/gallium/drivers/r300/r300_render_translate.c @@ -44,6 +44,7 @@ void r300_translate_index_buffer(struct r300_context *r300, &r300->context, *index_buffer, index_offset, *start, count, ptr); + *index_buffer = NULL; pipe_resource_reference(index_buffer, out_buffer); *index_size = 2; *start = out_offset / 2; @@ -59,6 +60,7 @@ void r300_translate_index_buffer(struct r300_context *r300, index_offset, *start, count, ptr); + *index_buffer = NULL; pipe_resource_reference(index_buffer, out_buffer); *start = out_offset / 2; r300->validate_buffers = TRUE; @@ -74,6 +76,7 @@ void r300_translate_index_buffer(struct r300_context *r300, index_offset, *start, count, ptr); + *index_buffer = NULL; pipe_resource_reference(index_buffer, out_buffer); *start = out_offset / 4; r300->validate_buffers = TRUE; |