summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexManagerBase.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2016-05-07 09:35:40 +0200
committerdegasus <wickmarkus@web.de>2016-09-17 16:47:12 +0200
commit258f48572deda4bedd776dd7e11584e9c252c61d (patch)
treee785be4317e058c123433d2d2458d3e4ba3aeca0 /Source/Core/VideoCommon/VertexManagerBase.cpp
parent22b5d89bf15e22de63264771c1f373519ea5cc25 (diff)
VertexLoaderJit: Fix out-of-bounds access for zfreeze.
This fixes a GCC6.1 warning.
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp
index 8ac365a735..ab4dced0e9 100644
--- a/Source/Core/VideoCommon/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/VertexManagerBase.cpp
@@ -304,7 +304,7 @@ void VertexManagerBase::CalculateZSlope(NativeVertexFormat* format)
{
// If this vertex format has per-vertex position matrix IDs, look it up.
if (vert_decl.posmtx.enable)
- mtxIdx = VertexLoaderManager::position_matrix_index[2 - i];
+ mtxIdx = VertexLoaderManager::position_matrix_index[3 - i];
if (vert_decl.position.components == 2)
VertexLoaderManager::position_cache[2 - i][2] = 0;