gallium/hud: just unmap the upload vertex buffer instead of recreating it
authorMarek Olšák <marek.olsak@amd.com>
Mon, 13 Jan 2014 11:59:14 +0000 (12:59 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 23 Jan 2014 00:47:14 +0000 (01:47 +0100)
src/gallium/auxiliary/hud/hud_context.c

index c4a4f18778ae463d007d36cfcccaaa0158d03994..465013cb8f219e11b8398209aea1f16da18fd9ab 100644 (file)
@@ -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);