summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderManager.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-04-13 16:12:53 -0700
committerPokechu22 <Pokechu022@gmail.com>2022-04-22 16:54:38 -0700
commit97d0ff58c8dbe374a1b87e1a72f1f245ed27ed96 (patch)
tree70031f58df4bfbfc6222257bebaf3bced14cf24e /Source/Core/VideoCommon/VertexLoaderManager.cpp
parentf722bdf7f1ab5913d035f257ff82865a686b08d6 (diff)
Convert vertex loader position cache to std::array
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp
index b0922e5a6e..e2881a8e3d 100644
--- a/Source/Core/VideoCommon/VertexLoaderManager.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp
@@ -31,11 +31,11 @@
namespace VertexLoaderManager
{
-float position_cache[3][4];
-
+// Used by zfreeze
+std::array<std::array<float, 4>, 3> position_cache;
// The counter added to the address of the array is 1, 2, or 3, but never zero.
// So only index 1 - 3 are used.
-u32 position_matrix_index[4];
+std::array<u32, 4> position_matrix_index_cache;
static NativeVertexFormatMap s_native_vertex_map;
static NativeVertexFormat* s_current_vtx_fmt;