gbm: always pass through images to unmap

this should be fine?

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472>
This commit is contained in:
Mike Blumenkrantz 2024-07-29 13:29:28 -04:00 committed by Marge Bot
parent 4a0a39245d
commit 8364f2e571

View file

@ -1083,7 +1083,7 @@ gbm_dri_bo_unmap(struct gbm_bo *_bo, void *map_data)
return;
}
if (!dri->context || !dri->image->unmapImage)
if (!dri->context)
return;
dri2_unmap_image(dri->context, bo->image, map_data);