Reset the cache in all the contexts while destroying buffers and textures