diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2016-09-27 10:31:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-27 10:31:48 +0200 |
| commit | 8afba3060357d48022e0873bbe0df492eb26954f (patch) | |
| tree | 89de1f37dc10f5c8ce926442bf8852843b5b1f38 /Source/Core/VideoCommon/VertexLoader.cpp | |
| parent | e7aad130e939d9ddd281f0c93b81da1af793d82a (diff) | |
| parent | 258f48572deda4bedd776dd7e11584e9c252c61d (diff) | |
Merge pull request #3822 from degasus/warning
VertexLoaderJit: Fix out-of-bounds access for zfreeze.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp index e1410b49f2..1db8deec0c 100644 --- a/Source/Core/VideoCommon/VertexLoader.cpp +++ b/Source/Core/VideoCommon/VertexLoader.cpp @@ -23,7 +23,7 @@ static void PosMtx_ReadDirect_UByte(VertexLoader* loader) { u32 posmtx = DataRead<u8>() & 0x3f; if (loader->m_counter < 3) - VertexLoaderManager::position_matrix_index[loader->m_counter] = posmtx; + VertexLoaderManager::position_matrix_index[loader->m_counter + 1] = posmtx; DataWrite<u32>(posmtx); PRIM_LOG("posmtx: %d, ", posmtx); } |
