gpu: handle wrapping somewhat
[pcsx_rearmed.git] / plugins / gpu_neon / psx_gpu_if.c
index 69a2a1b..4a8b76f 100644 (file)
@@ -151,6 +151,7 @@ sync_enhancement_buffers(int x, int y, int w, int h)
     }
 
     x += (w1 + s) * step_x;
+    x &= 0x3ff;
     x_buf = 0;
   }
 }