summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r--src/gallium/drivers/r300/r300_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index c8966ee59a5..114fb316c05 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -84,9 +84,9 @@ static void r300_release_referenced_objects(struct r300_context *r300)
pipe_resource_reference(&r300->vbo, NULL);
/* Vertex buffers. */
- for (i = 0; i < r300->vertex_buffer_count; i++) {
+ for (i = 0; i < r300->real_vertex_buffer_count; i++) {
pipe_resource_reference(&r300->vertex_buffer[i].buffer, NULL);
- pipe_resource_reference(&r300->valid_vertex_buffer[i], NULL);
+ pipe_resource_reference(&r300->real_vertex_buffer[i], NULL);
}
/* If there are any queries pending or not destroyed, remove them now. */