mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Unify the "BindSampler" function between the backends
This commit is contained in:
1 parent
306f3dec92
commit
2e012b8966
8 files changed
+9
-27
No files matched your search
@@ -2693,6 +2693,13 @@ void TextureCacheCommon::DeleteTexture(TexCache::iterator it) {
|
||||
cache_.erase(it);
|
||||
}
|
||||
|
||||
void TextureCacheCommon::BindSampler(TexCacheEntry *entry, bool flatZ) {
|
||||
_dbg_assert_(entry);
|
||||
int maxLevel = (entry->status & TexStatus::NO_MIPS) ? 0 : entry->maxLevel;
|
||||
SamplerCacheKey samplerKey = GetSamplingParams(maxLevel, entry, flatZ);
|
||||
ApplySamplingParams(samplerKey);
|
||||
}
|
||||
|
||||
bool TextureCacheCommon::CheckFullHash(TexCacheEntry *entry, bool &doDelete) {
|
||||
int w = gstate.getTextureWidth(0);
|
||||
int h = gstate.getTextureHeight(0);
|
||||
|
||||
Reference in new issue
Block a user