mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
Update maxSeenV earlier.
Now, the initial fullhash is already on the correct range.
This commit is contained in:
1 parent
6bd86f462d
commit
bfe23361cd
1 file changed
+3
-4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user