mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 23:00:34 +01:00
Allow unreference with a NULL argument.
This commit is contained in:
parent
425d0c6305
commit
431baf221e
1 changed files with 6 additions and 0 deletions
|
|
@ -58,6 +58,9 @@ dri_bo_reference(dri_bo *bo)
|
|||
void
|
||||
dri_bo_unreference(dri_bo *bo)
|
||||
{
|
||||
if (bo == NULL)
|
||||
return;
|
||||
|
||||
bo->bufmgr->bo_unreference(bo);
|
||||
}
|
||||
|
||||
|
|
@ -100,6 +103,9 @@ dri_fence_reference(dri_fence *fence)
|
|||
void
|
||||
dri_fence_unreference(dri_fence *fence)
|
||||
{
|
||||
if (fence == NULL)
|
||||
return;
|
||||
|
||||
fence->bufmgr->fence_unreference(fence);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue