gpu: Fix a problem with texture caches
We can reach the code that removes the item from the hash table after the weak unref has triggered. In that case, trying to remove the weak ref is spewing a warning. Avoid that.
Fixes: #6377 (closed)
We can reach the code that removes the item from the hash table after the weak unref has triggered. In that case, trying to remove the weak ref is spewing a warning. Avoid that.
Fixes: #6377 (closed)