projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdd3770
)
hud: flush/unmap the vertex buffer before drawing
author
Brian Paul
<brianp@vmware.com>
Mon, 1 Apr 2013 22:46:06 +0000
(16:46 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 2 Apr 2013 14:17:28 +0000
(08:17 -0600)
The VMware svga driver is picky about making sure the VBO is unmapped
before drawing.
Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/auxiliary/hud/hud_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/hud/hud_context.c
b/src/gallium/auxiliary/hud/hud_context.c
index 60355cabc771da490648c00d82344da8e8b97d19..65b82473b8341d7fe7074a04f30859da339aef83 100644
(file)
--- a/
src/gallium/auxiliary/hud/hud_context.c
+++ b/
src/gallium/auxiliary/hud/hud_context.c
@@
-476,6
+476,9
@@
hud_draw(struct hud_context *hud, struct pipe_resource *tex)
hud_pane_accumulate_vertices(hud, pane);
}
+ /* unmap the uploader's vertex buffer before drawing */
+ u_upload_flush(hud->uploader);
+
/* draw accumulated vertices for background quads */
cso_set_fragment_shader_handle(hud->cso, hud->fs_color);