]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix Virge 3D vertical clipping.
authorToni Wilen <twilen@winuae.net>
Sat, 17 Oct 2020 17:00:53 +0000 (20:00 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 17 Oct 2020 17:00:53 +0000 (20:00 +0300)
pcem/vid_s3_virge.cpp

index f52aeb0bfb172e7afc5bc467798e3c1f1caeafc2..6c72388277671928c50dc5cc7092a8363ed6863f 100644 (file)
@@ -3024,7 +3024,7 @@ static void tri(virge_t *virge, s3d_t *s3d_tri, s3d_state_t *state, int yc, int3
                         state->x1 += (dx1 * diff_y);
                         state->x2 += (dx2 * diff_y);
                         state->y -= diff_y;
-                        dest_offset -= s3d_tri->dest_str;
+                        dest_offset -= s3d_tri->dest_str * diff_y;
                         z_offset -= s3d_tri->z_str;
                         y_count -= diff_y;
                 }