Skip to content

Commit

Permalink
Fixed vinnglitch not being reset correctly after n64video_update_screen
Browse files Browse the repository at this point in the history
This should fix display issues in Doom 64 with filtered VI
  • Loading branch information
ata4 committed Mar 16, 2024
1 parent 20eaeaf commit 8a1cc86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/n64video/vi.c
Expand Up @@ -650,6 +650,8 @@ void n64video_update_screen(struct n64video_frame_buffer* fb)

if (ctrl.aa_mode == VI_AA_REPLICATE && (ctrl.type & 2) && h_start < (ctrl.type == VI_TYPE_RGBA5551 ? 0x80 : 0x40) && x_add <= 0x200) {
vinnglitch = ctrl.type == VI_TYPE_RGBA5551 ? 0x40 : 0x20;
} else {
vinnglitch = 0;
}

// cancel if the frame buffer contains no valid address
Expand Down

0 comments on commit 8a1cc86

Please sign in to comment.