mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 04:50:11 +01:00
ralloc: Allow reparenting to a NULL context
Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Ian Romanick <idr@freedesktop.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
2e317a4b6d
commit
c3d54d0375
1 changed files with 1 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ ralloc_steal(const void *new_ctx, void *ptr)
|
|||
return;
|
||||
|
||||
info = get_header(ptr);
|
||||
parent = get_header(new_ctx);
|
||||
parent = new_ctx ? get_header(new_ctx) : NULL;
|
||||
|
||||
unlink_block(info);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue