projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5330c5a
)
r300g: set a dummy vertex buffer in context_create
author
Marek Olšák
<maraeo@gmail.com>
Mon, 14 Jan 2013 04:51:05 +0000
(
05:51
+0100)
committer
Marek Olšák
<maraeo@gmail.com>
Mon, 14 Jan 2013 04:58:06 +0000
(
05:58
+0100)
so that the driver doesn't crash if an app doesn't set any vertex buffers.
src/gallium/drivers/r300/r300_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_context.c
b/src/gallium/drivers/r300/r300_context.c
index 0ac41471650de5694c5d21c66d1c44297fbc5f35..c744fea10cf85aed4807c0c01ef34820e1217d12 100644
(file)
--- 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);
}
{