r600g: Fixed a bo reference leak in the draw module.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
This commit is contained in:
Tilman Sauerbeck
2010-09-09 21:33:37 +02:00
parent 0b4c529da5
commit ec2e0fd1e9
+5
View File
@@ -122,6 +122,9 @@ static int r600_draw_common(struct r600_draw *draw)
r600_flush(draw->ctx, 0, NULL);
r = radeon_ctx_set_draw(&rctx->ctx, &rctx->draw);
}
radeon_state_fini(&draw->draw);
return r;
}
@@ -133,6 +136,8 @@ void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
assert(info->index_bias == 0);
memset(&draw, 0, sizeof(draw));
draw.ctx = ctx;
draw.mode = info->mode;
draw.start = info->start;