From ff1d53c9c76318327878d8d51c1919b112d885c8 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 14 Nov 2013 00:56:24 +0100 Subject: [PATCH] vtxdec x86: Don't load bones unless software skinning is enabled --- GPU/GLES/VertexDecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GLES/VertexDecoder.cpp b/GPU/GLES/VertexDecoder.cpp index f4862f4c57..95ad94e04c 100644 --- a/GPU/GLES/VertexDecoder.cpp +++ b/GPU/GLES/VertexDecoder.cpp @@ -1719,7 +1719,7 @@ JittedVertexDecoder VertexDecoderJitCache::Compile(const VertexDecoder &dec) { // Later we might want to do this when the matrices are loaded instead. // This is mostly proof of concept. int boneCount = 0; - if (dec.weighttype) { + if (dec.weighttype && g_Config.bSoftwareSkinning) { for (int i = 0; i < 8; i++) { MOVUPS(XMM0, M((void *)(gstate.boneMatrix + 12 * i))); MOVUPS(XMM1, M((void *)(gstate.boneMatrix + 12 * i + 3)));