diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-03-26 15:46:37 -0700 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2021-03-26 17:27:21 -0700 |
| commit | 51de3d0fd177558f2626eb19fb01253498e681d3 (patch) | |
| tree | 8889a1f91a7b8cb5152a350342e7d5383b8f6da6 /Source/Core/VideoCommon/VertexLoaderManager.cpp | |
| parent | c915b780cf8fa0d1b83b6683c52b14eaef796a3f (diff) | |
Refactor CP array constants slightly
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp index fdb63679f5..8a2eba09b4 100644 --- a/Source/Core/VideoCommon/VertexLoaderManager.cpp +++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp @@ -47,7 +47,7 @@ static std::mutex s_vertex_loader_map_lock; static VertexLoaderMap s_vertex_loader_map; // TODO - change into array of pointers. Keep a map of all seen so far. -u8* cached_arraybases[12]; +u8* cached_arraybases[NUM_VERTEX_COMPONENT_ARRAYS]; void Init() { @@ -88,8 +88,8 @@ void UpdateVertexArrayPointers() for (size_t i = 0; i < g_main_cp_state.vtx_desc.low.Color.Size(); i++) { if (IsIndexed(g_main_cp_state.vtx_desc.low.Color[i])) - cached_arraybases[ARRAY_COLOR + i] = - Memory::GetPointer(g_main_cp_state.array_bases[ARRAY_COLOR + i]); + cached_arraybases[ARRAY_COLOR0 + i] = + Memory::GetPointer(g_main_cp_state.array_bases[ARRAY_COLOR0 + i]); } for (size_t i = 0; i < g_main_cp_state.vtx_desc.high.TexCoord.Size(); i++) |
