Banshee / Voodoo3: Fixed check for address wrap during update().

This commit is contained in:
Volker Ruppert 2024-06-01 08:11:09 +02:00
parent 9264301293
commit 12e78032af

View File

@ -599,8 +599,8 @@ void bx_voodoo_base_c::update(void)
iHeight = s.vdraw.height;
start &= v->fbi.mask;
Bit8u *disp_ptr = &v->fbi.ram[start];
if ((start + pitch * iHeight) > v->fbi.mask) {
BX_ERROR(("update(): skip address wrap (start = 0x%08x)", start));
if ((start + pitch * iHeight) > (v->fbi.mask + 1)) {
BX_ERROR(("skip address wrap during update() (start = 0x%08x)", start));
BX_UNLOCK(render_mutex);
return;
}