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

This commit is contained in:
Marek Olšák 2014-01-13 12:59:14 +01:00
parent 2b033f3aab
commit 0c20bff4b6

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