diff options
author | Marek Olšák <[email protected]> | 2013-01-14 05:51:05 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-01-14 05:58:06 +0100 |
commit | e3e1ffb2520498584ef402213d0c8aa4303a46a3 (patch) | |
tree | e13a448eb07ec4fa7742ac38d2fd72d5a8880a38 /src/gallium | |
parent | 5330c5a248aa9dbb45cfde55d5488d982cedff7f (diff) |
r300g: set a dummy vertex buffer in context_create
so that the driver doesn't crash if an app doesn't set any vertex buffers.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c index 0ac41471650..c744fea10cf 100644 --- a/src/gallium/drivers/r300/r300_context.c +++ b/src/gallium/drivers/r300/r300_context.c @@ -455,6 +455,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen, vb.depth0 = 1; r300->dummy_vb.buffer = screen->resource_create(screen, &vb); + r300->context.set_vertex_buffers(&r300->context, 0, 1, &r300->dummy_vb); } { |