Mesa (master): gallium/hud: just unmap the upload vertex buffer instead of recreating it

Marek Olšák mareko at kemper.freedesktop.org
Thu Jan 23 00:50:50 UTC 2014


Module: Mesa
Branch: master
Commit: 0c20bff4b626413804486444ad239af620722e2f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c20bff4b626413804486444ad239af620722e2f

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Mon Jan 13 12:59:14 2014 +0100

gallium/hud: just unmap the upload vertex buffer instead of recreating it

---

 src/gallium/auxiliary/hud/hud_context.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c
index c4a4f18..465013c 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);




More information about the mesa-commit mailing list