summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-10 23:34:50 -0400
committerLioncash <mathew1800@gmail.com>2019-07-10 23:34:54 -0400
commitd4337eebdeb999df380394cdd20d054f5e9fe375 (patch)
treeb2c04979677aa138cbc3202c510a96040ba9adcd /Source/Core/VideoCommon/TextureCacheBase.cpp
parent9802a5e16b5860d1c6b42beeb1b8ca883467e1b1 (diff)
VideoCommon/Statistics: Rename stats global to g_stats
Makes the global variable follow our convention of prefixing g_ on global variables to make it obvious in surrounding code that it's not a local variable.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index d031792b4b..490b51683e 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -1200,8 +1200,8 @@ TextureCacheBase::GetTexture(u32 address, u32 width, u32 height, const TextureFo
}
}
- INCSTAT(stats.num_textures_uploaded);
- SETSTAT(stats.num_textures_alive, static_cast<int>(textures_by_address.size()));
+ INCSTAT(g_stats.num_textures_uploaded);
+ SETSTAT(g_stats.num_textures_alive, static_cast<int>(textures_by_address.size()));
entry = DoPartialTextureUpdates(iter->second, &texMem[tlutaddr], tlutfmt);
@@ -1277,8 +1277,8 @@ TextureCacheBase::GetXFBTexture(u32 address, u32 width, u32 height, u32 stride,
// Insert into the texture cache so we can re-use it next frame, if needed.
textures_by_address.emplace(entry->addr, entry);
- SETSTAT(stats.num_textures_alive, static_cast<int>(textures_by_address.size()));
- INCSTAT(stats.num_textures_uploaded);
+ SETSTAT(g_stats.num_textures_alive, static_cast<int>(textures_by_address.size()));
+ INCSTAT(g_stats.num_textures_uploaded);
if (g_ActiveConfig.bDumpXFBTarget)
{
@@ -2017,7 +2017,7 @@ TextureCacheBase::AllocateTexture(const TextureConfig& config)
}
}
- INCSTAT(stats.num_textures_created);
+ INCSTAT(g_stats.num_textures_created);
return TexPoolEntry(std::move(texture), std::move(framebuffer));
}