From af044cbf908762f4e5d66384aa7dffeae58844aa Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 7 Oct 2012 19:34:51 +0300 Subject: [PATCH] psx_gpu: more limit checking --- plugins/gpu_neon/psx_gpu/psx_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu.c b/plugins/gpu_neon/psx_gpu/psx_gpu.c index cf6e2be4..68996c16 100644 --- a/plugins/gpu_neon/psx_gpu/psx_gpu.c +++ b/plugins/gpu_neon/psx_gpu/psx_gpu.c @@ -2970,7 +2970,7 @@ void render_triangle(psx_gpu_struct *psx_gpu, vertex_struct *vertexes, vertex_swap(a, b); } - if((c->x - a->x) >= 1024) + if((c->x - psx_gpu->offset_x) >= 1024 || (c->x - a->x) >= 1024) { #ifdef PROFILE trivial_rejects++; -- 2.39.2