diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-08-04 23:23:02 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-08-04 23:23:04 -0400 |
| commit | fd12ae1408f5e19a23cee6df4727a7b70ef0d312 (patch) | |
| tree | 56413c091293d82c29263acb863e79442e50fdf6 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 7f6abfb0bf55612e1c2bde0ef633bd669e08e3ba (diff) | |
VideoCommon/TextureCacheBase: Remove use of the texture cache global
We can just call the functions that are part of the interface instead of
using the global in order to execute those functions.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 2f330bb2bc..b9b59145ff 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -572,7 +572,7 @@ void TextureCacheBase::DoSaveState(PointerWrap& p) p.Do(size); for (TCacheEntry* entry : entries_to_save) { - g_texture_cache->SerializeTexture(entry->texture.get(), entry->texture->GetConfig(), p); + SerializeTexture(entry->texture.get(), entry->texture->GetConfig(), p); entry->DoState(p); } p.DoMarker("TextureCacheEntries"); @@ -652,9 +652,9 @@ void TextureCacheBase::DoLoadState(PointerWrap& p) { // Even if the texture isn't valid, we still need to create the cache entry object // to update the point in the state state. We'll just throw it away if it's invalid. - auto tex = g_texture_cache->DeserializeTexture(p); + auto tex = DeserializeTexture(p); TCacheEntry* entry = new TCacheEntry(std::move(tex->texture), std::move(tex->framebuffer)); - entry->textures_by_hash_iter = g_texture_cache->textures_by_hash.end(); + entry->textures_by_hash_iter = textures_by_hash.end(); entry->DoState(p); if (entry->texture && commit_state) id_map.emplace(i, entry); |
