mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -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;
|
||||
for (; i < (stride & ~1); i+=2)
|
||||
*(u64*)&dst[i] = *(u64*)&BGOBJLine[i];
|
||||
if (stride & 1) dst[i] = BGOBJLine[i];
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user