mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 22:01:06 -06:00
avoid out-of-bounds read in GPU2D. fixes #763
This commit is contained in:
@ -815,7 +815,6 @@ void GPU2D::DrawScanline(u32 line)
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
for (; i < (stride & ~1); i+=2)
|
for (; i < (stride & ~1); i+=2)
|
||||||
*(u64*)&dst[i] = *(u64*)&BGOBJLine[i];
|
*(u64*)&dst[i] = *(u64*)&BGOBJLine[i];
|
||||||
if (stride & 1) dst[i] = BGOBJLine[i];
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user