mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
TextureCacheBase: Eliminate static state
This commit is contained in:
parent
1fa61af413
commit
58a5395173
21 changed files with 141 additions and 163 deletions
|
@ -214,10 +214,10 @@ void VertexManagerBase::Flush()
|
|||
if (bpmem.tevind[i].IsActive() && bpmem.tevind[i].bt < bpmem.genMode.numindstages)
|
||||
usedtextures[bpmem.tevindref.getTexMap(bpmem.tevind[i].bt)] = true;
|
||||
|
||||
TextureCacheBase::UnbindTextures();
|
||||
g_texture_cache->UnbindTextures();
|
||||
for (unsigned int i : usedtextures)
|
||||
{
|
||||
const TextureCacheBase::TCacheEntryBase* tentry = TextureCacheBase::Load(i);
|
||||
const auto* tentry = g_texture_cache->Load(i);
|
||||
|
||||
if (tentry)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue