diff options
| author | Scott Mansell <phiren@gmail.com> | 2022-07-25 17:20:33 +1200 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2023-01-31 18:29:47 +1300 |
| commit | 606c18210dd4f651655b2c84e9e332e6c6c6e21b (patch) | |
| tree | 81aab84d1b49f2e051ccd753b03bb2b7cd0dda57 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | c1fd4a2013d90c65f1f12d83ffbb9720ef463376 (diff) | |
TextureCache: Refactor with smart pointers
The whole ownership model was getting a bit of a mess, with a some
of special cases to deal with. And I'm planning to make it even more
complex in the future.
So here is some upfront work to convert it over to reference counted
pointers.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 209fa8293a..9c9e564b91 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -1361,7 +1361,7 @@ void Renderer::Swap(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height, u6 { // Get the current XFB from texture cache MathUtil::Rectangle<int> xfb_rect; - const auto* xfb_entry = + const auto xfb_entry = g_texture_cache->GetXFBTexture(xfb_addr, fb_width, fb_height, fb_stride, &xfb_rect); const bool is_duplicate_frame = xfb_entry->id == m_last_xfb_id; |
