mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #8017 from unknownbrackets/gpu-minor
Ensure we update sampling params on tex update
This commit is contained in:
commit
d885cfa8a7
1 changed files with 5 additions and 3 deletions
|
@ -1005,8 +1005,10 @@ void TextureCache::ApplyTexture() {
|
|||
}
|
||||
}
|
||||
|
||||
glBindTexture(GL_TEXTURE_2D, nextTexture_->textureName);
|
||||
lastBoundTexture = nextTexture_->textureName;
|
||||
if (nextTexture_->textureName != lastBoundTexture) {
|
||||
glBindTexture(GL_TEXTURE_2D, nextTexture_->textureName);
|
||||
lastBoundTexture = nextTexture_->textureName;
|
||||
}
|
||||
UpdateSamplingParams(*nextTexture_, false);
|
||||
}
|
||||
|
||||
|
@ -1354,10 +1356,10 @@ void TextureCache::SetTexture(bool force) {
|
|||
//got one!
|
||||
entry->lastFrame = gpuStats.numFlips;
|
||||
if (entry->textureName != lastBoundTexture) {
|
||||
nextTexture_ = entry;
|
||||
gstate_c.textureFullAlpha = entry->GetAlphaStatus() == TexCacheEntry::STATUS_ALPHA_FULL;
|
||||
gstate_c.textureSimpleAlpha = entry->GetAlphaStatus() != TexCacheEntry::STATUS_ALPHA_UNKNOWN;
|
||||
}
|
||||
nextTexture_ = entry;
|
||||
VERBOSE_LOG(G3D, "Texture at %08x Found in Cache, applying", texaddr);
|
||||
return; //Done!
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue