mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 17:49:01 +00:00
Merge pull request #4224 from lioncash/tcache
TextureCacheBase: Eliminate static state
This commit is contained in:
commit
9160be50db
21 changed files with 141 additions and 163 deletions
|
@ -559,7 +559,7 @@ void Renderer::SwapImpl(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height
|
|||
CheckForTargetResize(fb_width, fb_stride, fb_height);
|
||||
|
||||
// Clean up stale textures.
|
||||
TextureCacheBase::Cleanup(frameCount);
|
||||
TextureCache::GetInstance()->Cleanup(frameCount);
|
||||
}
|
||||
|
||||
void Renderer::DrawFrame(VkRenderPass render_pass, const TargetRectangle& target_rect,
|
||||
|
@ -1112,7 +1112,7 @@ void Renderer::CheckForConfigChanges()
|
|||
bool aspect_changed = old_aspect_ratio != g_ActiveConfig.iAspectRatio;
|
||||
|
||||
// Update texture cache settings with any changed options.
|
||||
TextureCache::OnConfigChanged(g_ActiveConfig);
|
||||
TextureCache::GetInstance()->OnConfigChanged(g_ActiveConfig);
|
||||
|
||||
// Handle internal resolution changes.
|
||||
if (efb_scale_changed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue