summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-04-01 16:46:06 -0600
committerBrian Paul <[email protected]>2013-04-02 08:17:28 -0600
commit98b64cc20f676a167a4d8d5ea29602f8842a6cf4 (patch)
tree9fc667b61f9912cc2fd19cfa2c02845e4d62b5d6 /src/gallium/auxiliary
parentbdd3770b789b7b42619dd485e816df3285e3408d (diff)
hud: flush/unmap the vertex buffer before drawing
The VMware svga driver is picky about making sure the VBO is unmapped before drawing. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/hud/hud_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c
index 60355cabc77..65b82473b83 100644
--- 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);