mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
Eliminate SamplerCommon::AreBpTexMode0MipmapsEnabled
This was added in0b9a72a62d
but became irrelevant in70f9fc4e75
as the check is now self-explanatory due to a rejiggering of the bitfields.
This commit is contained in:
@ -9,7 +9,6 @@
|
||||
#include "Common/Align.h"
|
||||
#include "Core/HW/Memmap.h"
|
||||
#include "VideoCommon/BPMemory.h"
|
||||
#include "VideoCommon/SamplerCommon.h"
|
||||
#include "VideoCommon/TextureDecoder.h"
|
||||
|
||||
TextureInfo TextureInfo::FromStage(u32 stage)
|
||||
@ -28,7 +27,7 @@ TextureInfo TextureInfo::FromStage(u32 stage)
|
||||
const u8* tlut_ptr = &texMem[tlutaddr];
|
||||
|
||||
std::optional<u32> mip_count;
|
||||
const bool has_mipmaps = SamplerCommon::AreBpTexMode0MipmapsEnabled(tex.texMode0);
|
||||
const bool has_mipmaps = tex.texMode0.mipmap_filter != MipMode::None;
|
||||
if (has_mipmaps)
|
||||
{
|
||||
mip_count = (tex.texMode1.max_lod + 0xf) / 0x10;
|
||||
|
Reference in New Issue
Block a user