summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2015-01-18 16:22:21 +0100
committerTillmann Karras <tilkax@gmail.com>2015-01-18 16:22:21 +0100
commit7d0cff05e94d59999fdb83e01dd4bfbd8493d936 (patch)
tree2f6100d19b6cfc7cf1e2fea2b1254c81468a39ed /Source/Core
parent1855d56f1ab3a6284ac361e5ed82f422ac5de9a2 (diff)
VertexLoaderX64: make table lookup deterministic
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderX64.cpp2
1 files changed, 1 insertions, 1 deletions
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++)