gpulib: rm old clipping code
authornotaz <notasas@gmail.com>
Sat, 7 Mar 2026 00:42:59 +0000 (02:42 +0200)
committernotaz <notasas@gmail.com>
Sun, 8 Mar 2026 01:38:29 +0000 (03:38 +0200)
not needed since cdc1d78f3e3e22c45e8461368b3aa58fce23c09c
libretro/pcsx_rearmed#912

plugins/gpulib/vout_pl.c

index 90c44cb..703d490 100644 (file)
@@ -98,17 +98,6 @@ int vout_update(struct psx_gpu *gpu, int src_x, int src_y)
     src_x2 *= 2;
   }
 
-  if (src_y + h > vram_h) {
-    if (src_y + h - vram_h > h / 2) {
-      // wrap
-      h -= vram_h - src_y;
-      src_y = 0;
-    }
-    else
-      // clip
-      h = vram_h - src_y;
-  }
-
   // gpu_unai skips drawing odd lines
   if (h > 256 && gpu->state.downscale_enable && (src_y & 1))
     src_y++;