From 7d0cff05e94d59999fdb83e01dd4bfbd8493d936 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 18 Jan 2015 16:22:21 +0100 Subject: [PATCH] VertexLoaderX64: make table lookup deterministic --- Source/Core/VideoCommon/VertexLoaderX64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/VertexLoaderX64.cpp b/Source/Core/VideoCommon/VertexLoaderX64.cpp index bf841ec9a8..c6b8b502ce 100644 --- a/Source/Core/VideoCommon/VertexLoaderX64.cpp +++ b/Source/Core/VideoCommon/VertexLoaderX64.cpp @@ -328,7 +328,7 @@ void VertexLoaderX64::GenerateVertexLoader() if (m_VtxDesc.Normal) { - static const u8 map[] = {7, 6, 15, 14, 0}; + static const u8 map[8] = {7, 6, 15, 14}; u8 scaling_exponent = map[m_VtxAttr.NormalFormat]; for (int i = 0; i < (m_VtxAttr.NormalElements ? 3 : 1); i++)