From 258f48572deda4bedd776dd7e11584e9c252c61d Mon Sep 17 00:00:00 2001 From: degasus Date: Sat, 7 May 2016 09:35:40 +0200 Subject: VertexLoaderJit: Fix out-of-bounds access for zfreeze. This fixes a GCC6.1 warning. --- Source/Core/VideoCommon/VertexManagerBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp') 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; -- cgit v1.2.3