BufferCache: Clear the transient cache when invalidated.

This commit is contained in:
Dr. Chat 2017-03-14 19:07:28 -05:00
parent 44e7c3712a
commit e4ece12371
1 changed files with 1 additions and 4 deletions

View File

@ -419,10 +419,7 @@ void BufferCache::Flush(VkCommandBuffer command_buffer) {
vkFlushMappedMemoryRanges(device_, 1, &dirty_range);
}
void BufferCache::InvalidateCache() {
// TODO(benvanik): caching.
}
void BufferCache::InvalidateCache() { transient_cache_.clear(); }
void BufferCache::ClearCache() { transient_cache_.clear(); }
void BufferCache::Scavenge() {