84762bb1cf
Indeed, the unbind function is not called which could lead to an unbalanced refcount state for the "drawable" object. For instance, with "piglit/bin/glx-fbo-binding -auto" while setting GALLIUM_REFCNT_LOG=refcnt.log. Signed-off-by: Patrick Lerda <patrick9876@free.fr> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22024>