summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-01-13 12:59:14 +0100
committerMarek Olšák <[email protected]>2014-01-23 01:47:14 +0100
commit0c20bff4b626413804486444ad239af620722e2f (patch)
treece20ac513bc275af931c7a2b6609615a5f649937
parent2b033f3aab8267eb6499954fe4a582472f91ef28 (diff)
gallium/hud: just unmap the upload vertex buffer instead of recreating it
-rw-r--r--src/gallium/auxiliary/hud/hud_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c
index c4a4f18778a..465013cb8f2 100644
--- a/src/gallium/auxiliary/hud/hud_context.c
+++ b/src/gallium/auxiliary/hud/hud_context.c
@@ -479,7 +479,7 @@ hud_draw(struct hud_context *hud, struct pipe_resource *tex)
}
/* unmap the uploader's vertex buffer before drawing */
- u_upload_flush(hud->uploader);
+ u_upload_unmap(hud->uploader);
/* draw accumulated vertices for background quads */
cso_set_fragment_shader_handle(hud->cso, hud->fs_color);