mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
TextureCache: inline arguments into texture cache
This commit is contained in:
@ -202,15 +202,7 @@ void VertexManager::Flush()
|
||||
for (unsigned int i : usedtextures)
|
||||
{
|
||||
g_renderer->SetSamplerState(i & 3, i >> 2);
|
||||
const FourTexUnits &tex = bpmem.tex[i >> 2];
|
||||
const TextureCache::TCacheEntryBase* tentry = TextureCache::Load(i,
|
||||
(tex.texImage3[i&3].image_base/* & 0x1FFFFF*/) << 5,
|
||||
tex.texImage0[i&3].width + 1, tex.texImage0[i&3].height + 1,
|
||||
tex.texImage0[i&3].format, tex.texTlut[i&3].tmem_offset<<9,
|
||||
tex.texTlut[i&3].tlut_format,
|
||||
((tex.texMode0[i&3].min_filter & 3) != 0),
|
||||
(tex.texMode1[i&3].max_lod + 0xf) / 0x10,
|
||||
(tex.texImage1[i&3].image_type != 0));
|
||||
const TextureCache::TCacheEntryBase* tentry = TextureCache::Load(i);
|
||||
|
||||
if (tentry)
|
||||
{
|
||||
|
Reference in New Issue
Block a user