summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoBackendBase.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2024-04-13 18:29:52 +0200
committerJosJuice <josjuice@gmail.com>2024-04-20 18:31:08 +0200
commit3cfa233b63dfcd734be2dd0ae4bd0d3e98109df6 (patch)
treef4b111b5d43f9192b15f82250d3123d15585b001 /Source/Core/VideoCommon/VideoBackendBase.cpp
parent5c9bb80638ec05b32eaa129a8c763ac6bb3a5cb4 (diff)
VideoCommon: Use GetSpanForAddress safely in texture decoding
Now only VertexLoader remains... But that one might be tricky.
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoBackendBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp
index ba6adbe6f7..91492321f4 100644
--- a/Source/Core/VideoCommon/VideoBackendBase.cpp
+++ b/Source/Core/VideoCommon/VideoBackendBase.cpp
@@ -344,7 +344,7 @@ bool VideoBackendBase::InitializeShared(std::unique_ptr<AbstractGfx> gfx,
{
memset(reinterpret_cast<u8*>(&g_main_cp_state), 0, sizeof(g_main_cp_state));
memset(reinterpret_cast<u8*>(&g_preprocess_cp_state), 0, sizeof(g_preprocess_cp_state));
- memset(texMem, 0, TMEM_SIZE);
+ s_tex_mem.fill(0);
// do not initialize again for the config window
m_initialized = true;