From ea9da85bdb9a46d650f94b84d2e20d929ade7924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 6 Nov 2013 13:14:49 +0100 Subject: [PATCH] Missed one possible unaligned access --- GPU/GLES/VertexDecoder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GPU/GLES/VertexDecoder.cpp b/GPU/GLES/VertexDecoder.cpp index 96b4101426..3cedb9f7d7 100644 --- a/GPU/GLES/VertexDecoder.cpp +++ b/GPU/GLES/VertexDecoder.cpp @@ -931,7 +931,9 @@ void VertexDecoderJitCache::Jit_WeightsFloat() { // Fill last two bytes with zeroes to align to 4 bytes. LDRH does it for us, handy. void VertexDecoderJitCache::Jit_TcU8() { - LDRH(tempReg1, srcReg, dec_->tcoff); + LDRB(tempReg1, srcReg, dec_->tcoff); + LDRB(tempReg2, srcReg, dec_->tcoff + 1); + ORR(tempReg1, tempReg1, Operand2(tempReg2, ST_LSL, 8)); STR(tempReg1, dstReg, dec_->decFmt.uvoff); }