summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexManagerBase.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2016-09-27 10:31:48 +0200
committerGitHub <noreply@github.com>2016-09-27 10:31:48 +0200
commit8afba3060357d48022e0873bbe0df492eb26954f (patch)
tree89de1f37dc10f5c8ce926442bf8852843b5b1f38 /Source/Core/VideoCommon/VertexManagerBase.cpp
parente7aad130e939d9ddd281f0c93b81da1af793d82a (diff)
parent258f48572deda4bedd776dd7e11584e9c252c61d (diff)
Merge pull request #3822 from degasus/warning
VertexLoaderJit: Fix out-of-bounds access for zfreeze.
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;