From 1914087998bc296208355dc4b1b2553430b081b2 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sun, 20 Jun 2021 13:47:57 -0700 Subject: Create and use CPArray enum class --- Source/Core/VideoCommon/VertexLoader_Position.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/VertexLoader_Position.cpp') 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(); loader->m_vertexSkip = index == std::numeric_limits::max(); const auto data = - reinterpret_cast(VertexLoaderManager::cached_arraybases[ARRAY_POSITION] + - (index * g_main_cp_state.array_strides[ARRAY_POSITION])); + reinterpret_cast(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); -- cgit v1.2.3