Disabled an incorrectly emulated portion of the TILE_SET glitch

This commit is contained in:
Lior Halphon 2021-12-26 19:57:18 +02:00
parent 6e7ba7589c
commit d178ece909
1 changed files with 3 additions and 2 deletions

View File

@ -1642,14 +1642,15 @@ abort_fetching_object:
} }
skip_slow_mode_3: skip_slow_mode_3:
/* TODO: Verify */ /* TODO: This seems incorrect (glitches Tesserae), verify further */
/*
if (gb->fetcher_state == 4 || gb->fetcher_state == 5) { if (gb->fetcher_state == 4 || gb->fetcher_state == 5) {
gb->data_for_sel_glitch = gb->current_tile_data[0]; gb->data_for_sel_glitch = gb->current_tile_data[0];
} }
else { else {
gb->data_for_sel_glitch = gb->current_tile_data[1]; gb->data_for_sel_glitch = gb->current_tile_data[1];
} }
*/
while (gb->lcd_x != 160 && !gb->disable_rendering && gb->screen && !gb->sgb) { while (gb->lcd_x != 160 && !gb->disable_rendering && gb->screen && !gb->sgb) {
/* Oh no! The PPU and LCD desynced! Fill the rest of the line whith white. */ /* Oh no! The PPU and LCD desynced! Fill the rest of the line whith white. */
uint32_t *dest = NULL; uint32_t *dest = NULL;