mirror of https://github.com/mgba-emu/mgba.git
GB Video: Always clean OAM at x 0
This commit is contained in:
parent
562c9ab1d9
commit
658747839f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue