mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-18 03:50:36 +02:00
nv30: avoid leaking blit fp/vp
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
b5622313ea
commit
61912036d1
1 changed files with 6 additions and 0 deletions
|
|
@ -165,6 +165,12 @@ nv30_context_destroy(struct pipe_context *pipe)
|
|||
if (nv30->draw)
|
||||
draw_destroy(nv30->draw);
|
||||
|
||||
if (nv30->blit_vp)
|
||||
nouveau_heap_free(&nv30->blit_vp);
|
||||
|
||||
if (nv30->blit_fp)
|
||||
pipe_resource_reference(&nv30->blit_fp, NULL);
|
||||
|
||||
if (nv30->screen->base.pushbuf->user_priv == &nv30->bufctx)
|
||||
nv30->screen->base.pushbuf->user_priv = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue