GB Video: Always clean OAM at x 0

This commit is contained in:
Vicki Pfau 2020-12-27 01:42:44 -08:00
parent 562c9ab1d9
commit 658747839f
1 changed files with 3 additions and 3 deletions

View File

@ -595,10 +595,10 @@ static void GBVideoSoftwareRendererDrawRange(struct GBVideoRenderer* renderer, i
memset(&softwareRenderer->row[startX], 0, (endX - startX) * sizeof(softwareRenderer->row[0]));
}
if (startX == 0) {
_cleanOAM(softwareRenderer, y);
}
if (GBRegisterLCDCIsObjEnable(softwareRenderer->lcdc) && !softwareRenderer->d.disableOBJ) {
if (startX == 0) {
_cleanOAM(softwareRenderer, y);
}
int i;
for (i = 0; i < softwareRenderer->objMax; ++i) {
GBVideoSoftwareRendererDrawObj(softwareRenderer, &softwareRenderer->obj[i], startX, endX, y);