From 9c6e7e2958349bfa92e00cc3987397a41b64d352 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 30 Nov 2013 16:26:50 +0100 Subject: [PATCH] Fix bug in vtxdec jit when hardware skinning --- GPU/GLES/VertexDecoderArm.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/GPU/GLES/VertexDecoderArm.cpp b/GPU/GLES/VertexDecoderArm.cpp index a5296d635d..7aeb4b1923 100644 --- a/GPU/GLES/VertexDecoderArm.cpp +++ b/GPU/GLES/VertexDecoderArm.cpp @@ -303,8 +303,11 @@ void VertexDecoderJitCache::Jit_WeightsFloat() { STR(tempReg1, dstReg, dec_->decFmt.w0off + j * 4); } if (j & 3) { - // Create a zero register. Might want to make a fixed one. - EOR(scratchReg, scratchReg, scratchReg); + EOR(tempReg1, tempReg1, tempReg1); + } + while (j & 3) { // Zero additional weights rounding up to 4. + STR(tempReg1, dstReg, dec_->decFmt.w0off + j * 4); + j++; } }