summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Position.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2021-06-20 13:47:57 -0700
committerPokechu22 <Pokechu022@gmail.com>2021-12-18 12:51:56 -0800
commit1914087998bc296208355dc4b1b2553430b081b2 (patch)
treebae5ecbd974582819f38c01fbff2aa762a812761 /Source/Core/VideoCommon/VertexLoader_Position.cpp
parent3aaeb2b9ef3f6b9cde69c77ecdf96e8defc996d5 (diff)
Create and use CPArray enum class
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Position.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader_Position.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Position.cpp b/Source/Core/VideoCommon/VertexLoader_Position.cpp
index 37b15de53c..0fe8e7ba72 100644
--- a/Source/Core/VideoCommon/VertexLoader_Position.cpp
+++ b/Source/Core/VideoCommon/VertexLoader_Position.cpp
@@ -60,8 +60,8 @@ void Pos_ReadIndex(VertexLoader* loader)
const auto index = DataRead<I>();
loader->m_vertexSkip = index == std::numeric_limits<I>::max();
const auto data =
- reinterpret_cast<const T*>(VertexLoaderManager::cached_arraybases[ARRAY_POSITION] +
- (index * g_main_cp_state.array_strides[ARRAY_POSITION]));
+ reinterpret_cast<const T*>(VertexLoaderManager::cached_arraybases[CPArray::Position] +
+ (index * g_main_cp_state.array_strides[CPArray::Position]));
const auto scale = loader->m_posScale;
DataReader dst(g_vertex_manager_write_ptr, nullptr);