TextureCacheBase: Add XFB specific functions

This commit is contained in:
iwubcode
2017-09-29 00:32:04 -05:00
parent 4964fc87ae
commit 74610646ce
3 changed files with 433 additions and 1 deletions

View File

@ -643,7 +643,7 @@ void Renderer::Swap(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, const
{
constexpr int force_safe_texture_cache_hash = 0;
// Get the current XFB from texture cache
auto* xfb_entry = g_texture_cache->GetTexture(xfbAddr, fbWidth, fbHeight, TextureFormat::XFB,
auto* xfb_entry = g_texture_cache->GetXFBTexture(xfbAddr, fbStride, fbHeight, TextureFormat::XFB,
force_safe_texture_cache_hash);
if (xfb_entry && xfb_entry->id != m_last_xfb_id)