Centralize DeleteTexture

This commit is contained in:
Henrik Rydgard committed 2017-02-19 22:50:04 +01:00
1 parent dbafc6ef95
commit 665ffe34ab
10 files changed
+19 -59

No files matched your search

+1 -5
View File
@@ -397,10 +397,6 @@ void TextureCacheVulkan::UpdateCurrentClut(GEPaletteFormat clutFormat, u32 clutB
clutLastFormat_ = gstate.clutformat;
}
inline u32 TextureCacheVulkan::GetCurrentClutHash() {
return clutHash_;
}
void TextureCacheVulkan::Unbind() {
}
@@ -639,7 +635,7 @@ void TextureCacheVulkan::SetTexture() {
// We update here because the clut format can be specified after the load.
UpdateCurrentClut(gstate.getClutPaletteFormat(), gstate.getClutIndexStartPos(), gstate.isClutIndexSimple());
}
cluthash = GetCurrentClutHash() ^ gstate.clutformat;
cluthash = clutHash_ ^ gstate.clutformat;
} else {
cluthash = 0;
}