mirror of https://github.com/mgba-emu/mgba.git
GB Video: OAM STAT can even happen in mode 1
This commit is contained in:
parent
2399219663
commit
a3d0b85d56
|
@ -106,7 +106,7 @@ int32_t GBVideoProcessEvents(struct GBVideo* video, int32_t cycles) {
|
|||
video->mode = 1;
|
||||
++video->frameCounter;
|
||||
video->renderer->finishFrame(video->renderer);
|
||||
if (GBRegisterSTATIsVblankIRQ(video->stat)) {
|
||||
if (GBRegisterSTATIsVblankIRQ(video->stat) || GBRegisterSTATIsOAMIRQ(video->stat)) {
|
||||
video->p->memory.io[REG_IF] |= (1 << GB_IRQ_LCDSTAT);
|
||||
}
|
||||
video->p->memory.io[REG_IF] |= (1 << GB_IRQ_VBLANK);
|
||||
|
|
Loading…
Reference in New Issue