From bfe23361cdcda391d61bb0d986c872e94f042e7d Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 1 May 2016 12:57:17 -0700 Subject: [PATCH] Update maxSeenV earlier. Now, the initial fullhash is already on the correct range. --- GPU/GLES/TextureCache.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/GPU/GLES/TextureCache.cpp b/GPU/GLES/TextureCache.cpp index 2e8cca2e69..fcf68fc647 100644 --- a/GPU/GLES/TextureCache.cpp +++ b/GPU/GLES/TextureCache.cpp @@ -772,6 +772,8 @@ void TextureCache::ApplyTexture() { } nextTexture_ = nullptr; + UpdateMaxSeenV(entry, gstate.isModeThrough()); + bool replaceImages = false; if (nextNeedsRebuild_) { if (nextNeedsRehash_) { @@ -796,6 +798,7 @@ void TextureCache::ApplyTexture() { // Secondary cache picked a different texture, use it. entry = nextTexture_; nextTexture_ = nullptr; + UpdateMaxSeenV(entry, gstate.isModeThrough()); } } @@ -808,8 +811,6 @@ void TextureCache::ApplyTexture() { if (entry->framebuffer) { ApplyTextureFramebuffer(entry, entry->framebuffer); } else { - UpdateMaxSeenV(entry, gstate.isModeThrough()); - if (entry->textureName != lastBoundTexture) { glBindTexture(GL_TEXTURE_2D, entry->textureName); lastBoundTexture = entry->textureName; @@ -1210,8 +1211,6 @@ void TextureCache::SetTexture(bool force) { VERBOSE_LOG(G3D, "Texture at %08x Found in Cache, applying", texaddr); return; //Done! } else { - entry->cluthash = cluthash; - nextTexture_ = entry; nextChangeReason_ = reason; nextNeedsChange_ = true; }