diff --git a/src/gb/video.c b/src/gb/video.c index 0677d19b8..d8a9da70c 100644 --- a/src/gb/video.c +++ b/src/gb/video.c @@ -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);