Minor optimization/cleanup

This commit is contained in:
Henrik Rydgård committed 2022-12-10 12:05:40 +01:00
1 parent 4ec1e2a175
commit cdb830f390
5 files changed
+11 -22

No files matched your search

-2
View File
@@ -404,8 +404,6 @@ void TextureCacheVulkan::BindTexture(TexCacheEntry *entry) {
return;
}
entry->vkTex->Touch();
int maxLevel = (entry->status & TexCacheEntry::STATUS_NO_MIPS) ? 0 : entry->maxLevel;
SamplerCacheKey samplerKey = GetSamplingParams(maxLevel, entry);
curSampler_ = samplerCache_.GetOrCreateSampler(samplerKey);