mirror of
https://github.com/libretro/RetroArch
synced 2025-02-05 06:40:07 +00:00
(GX) fix potential memory corruption in 32-bit video conversion
This commit is contained in:
parent
53ae024efc
commit
1221b024cb
@ -570,7 +570,7 @@ static void update_texture_asm(const uint32_t *src, const uint32_t *dst,
|
|||||||
{ \
|
{ \
|
||||||
const uint16_t *tmp_src = src; \
|
const uint16_t *tmp_src = src; \
|
||||||
uint16_t *tmp_dst = dst; \
|
uint16_t *tmp_dst = dst; \
|
||||||
for (unsigned x = 0; x < width2; x += 8, tmp_src += 32, tmp_dst += 128) \
|
for (unsigned x = 0; x < width2 >> 2; x += 8, tmp_src += 32, tmp_dst += 128) \
|
||||||
{ \
|
{ \
|
||||||
tmp_dst[ 0 + off] = tmp_src[0] | 0xFF00; \
|
tmp_dst[ 0 + off] = tmp_src[0] | 0xFF00; \
|
||||||
tmp_dst[ 16 + off] = tmp_src[1]; \
|
tmp_dst[ 16 + off] = tmp_src[1]; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user