mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
gallium/hud: just unmap the upload vertex buffer instead of recreating it
This commit is contained in:
parent
2b033f3aab
commit
0c20bff4b6
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue