Texcache: Cleanup last bound tex invalidation.

When we're deleting, we're always about to bind a new tex.
This commit is contained in:
Unknown W. Brackets committed 2017-03-25 11:42:24 -07:00
1 parent 6a88d6c5a4
commit 7fb7a4877d
5 files changed
+14 -11

No files matched your search

+3 -2
View File
@@ -271,7 +271,7 @@ void TextureCacheVulkan::SetFramebufferSamplingParams(u16 bufferWidth, u16 buffe
}
void TextureCacheVulkan::StartFrame() {
lastBoundTexture = nullptr;
InvalidateLastTexture();
timesInvalidatedAllThisFrame_ = 0;
texelsScaledThisFrame_ = 0;
@@ -342,6 +342,7 @@ void TextureCacheVulkan::BindTexture(TexCacheEntry *entry) {
void TextureCacheVulkan::Unbind() {
imageView_ = VK_NULL_HANDLE;
sampler_ = VK_NULL_HANDLE;
InvalidateLastTexture();
}
void TextureCacheVulkan::ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFramebuffer *framebuffer) {
@@ -452,7 +453,7 @@ void TextureCacheVulkan::ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFr
key.mipEnable = false;
sampler_ = samplerCache_.GetOrCreateSampler(key);
lastBoundTexture = nullptr;
InvalidateLastTexture();
}
}