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 <maraeo@gmail.com>
This commit is contained in:
Brian Paul 2013-04-01 16:46:06 -06:00
parent bdd3770b78
commit 98b64cc20f
1 changed files with 3 additions and 0 deletions

View File

@ -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);