Fix bug in vtxdec jit when hardware skinning

This commit is contained in:
Henrik Rydgard 2013-11-30 16:26:50 +01:00
parent e3e9408b87
commit 9c6e7e2958

View File

@ -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++;
}
}