r300g: Reset vbo_offset after allocation of a new buffer

This fixes the glxgears bug, among other things.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
This commit is contained in:
Nicolai Hähnle
2009-10-03 17:24:04 +02:00
parent ebbd65eb06
commit 751aa58e01

View File

@@ -86,6 +86,7 @@ static boolean r300_render_allocate_vertices(struct vbuf_render* render,
64,
PIPE_BUFFER_USAGE_VERTEX,
R300_MAX_VBO_SIZE);
r300render->vbo_offset = 0;
r300render->vbo_size = R300_MAX_VBO_SIZE;
}