diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2018-01-15 09:58:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-15 09:58:30 +0100 |
| commit | 2a43f41acec1d79865f3a1c4e951eaf766d0fec1 (patch) | |
| tree | d55c9ec37b0ed935d11639599e20822c908da62c /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 55584bf45618fd34fc5a3a3740c09597bb1e83bc (diff) | |
| parent | 226b65bd38eb9a92cc7d151df718214dc854ec70 (diff) | |
Merge pull request #6297 from JosJuice/custom-texture-arb-filename
Treat custom textures with "_arb" suffix as having arbitrary mipmaps
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 36e1328a92..444076aad4 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -718,9 +718,8 @@ TextureCacheBase::GetTexture(u32 address, u32 width, u32 height, const TextureFo return nullptr; } - // If we are recording a FifoLog, keep track of what memory we read. - // FifiRecorder does it's own memory modification tracking independant of the texture hashing - // below. + // If we are recording a FifoLog, keep track of what memory we read. FifoRecorder does + // its own memory modification tracking independent of the texture hashing below. if (g_bRecordFifoData && !from_tmem) FifoRecorder::GetInstance().UseMemory(address, texture_size + additional_mips_size, MemoryUpdate::TEXTURE_MAP); @@ -1088,7 +1087,8 @@ TextureCacheBase::GetTexture(u32 address, u32 width, u32 height, const TextureFo } } - entry->has_arbitrary_mips = arbitrary_mip_detector.HasArbitraryMipmaps(dst_buffer); + entry->has_arbitrary_mips = hires_tex ? hires_tex->HasArbitraryMipmaps() : + arbitrary_mip_detector.HasArbitraryMipmaps(dst_buffer); if (g_ActiveConfig.bDumpTextures && !hires_tex) { |
