mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 10:09:32 +01:00
Texcache: Cleanup last bound tex invalidation.
When we're deleting, we're always about to bind a new tex.
This commit is contained in:
1 parent
6a88d6c5a4
commit
7fb7a4877d
5 files changed
+14
-11
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user