mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
VideoCommon: Add an option to disable mipmaps
Needed by M1 fifoci to work around a minor non-determinism bug
This commit is contained in:
parent
ee7887b751
commit
37a51f1d09
5 changed files with 20 additions and 1 deletions
|
@ -1544,8 +1544,15 @@ TextureCacheBase::GetTexture(const int textureCacheSafetyColorSampleSize,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
const bool no_mips = g_ActiveConfig.bNoMipmapping;
|
||||
#else
|
||||
const bool no_mips = false;
|
||||
#endif
|
||||
// how many levels the allocated texture shall have
|
||||
const u32 texLevels = hires_tex ? (u32)hires_tex->m_levels.size() : texture_info.GetLevelCount();
|
||||
const u32 texLevels = no_mips ? 1 :
|
||||
hires_tex ? (u32)hires_tex->m_levels.size() :
|
||||
texture_info.GetLevelCount();
|
||||
|
||||
// We can decode on the GPU if it is a supported format and the flag is enabled.
|
||||
// Currently we don't decode RGBA8 textures from TMEM, as that would require copying from both
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue