Update maxSeenV earlier.

Now, the initial fullhash is already on the correct range.
This commit is contained in:
Unknown W. Brackets committed 2016-05-01 13:26:12 -07:00
1 parent 6bd86f462d
commit bfe23361cd
1 file changed
+3 -4
+3 -4
View File
@@ -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;
}