diff options
author | Marek Olšák <[email protected]> | 2012-03-31 05:32:25 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-04-24 01:39:21 +0200 |
commit | 2d03d4f4a365d7af5f4dac20700009152eba1682 (patch) | |
tree | 38295ad6418c93f609d0d194bf94988d0d8fe254 /src/gallium/drivers/r300/r300_state.c | |
parent | 31714ea4d5a20285f398286fe45b53d0609926dd (diff) |
u_vbuf: override set_vertex_buffers
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index ab5c18158d1..3345bae0990 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -1593,22 +1593,20 @@ static void r300_set_vertex_buffers(struct pipe_context* pipe, const struct pipe_vertex_buffer* buffers) { struct r300_context* r300 = r300_context(pipe); - struct pipe_vertex_buffer dummy_vb = {0}; /* There must be at least one vertex buffer set, otherwise it locks up. */ if (!count) { - dummy_vb.buffer = r300->dummy_vb; - buffers = &dummy_vb; + buffers = &r300->dummy_vb; count = 1; } + util_copy_vertex_buffers(r300->vertex_buffer, + &r300->nr_vertex_buffers, + buffers, count); + if (r300->screen->caps.has_tcl) { - u_vbuf_set_vertex_buffers(r300->vbuf_mgr, count, buffers); r300->vertex_arrays_dirty = TRUE; } else { - util_copy_vertex_buffers(r300->swtcl_vertex_buffer, - &r300->swtcl_nr_vertex_buffers, - buffers, count); draw_set_vertex_buffers(r300->draw, count, buffers); } } |