From b7010066ccbb97ec9e0a11a161c1375c9e792953 Mon Sep 17 00:00:00 2001 From: Fancy2209 <64917206+Fancy2209@users.noreply.github.com> Date: Fri, 27 Mar 2026 13:03:54 -0100 Subject: [PATCH] Fix gsKit_prim_triangle allocating wrong amount of memory gsKit_prim_triangle_gouraud used the right bsize and qsize, but not gsKit_prim_triangle. I am surprised it took 20 years for someone to notice. --- ee/gs/src/gsPrimitive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/gs/src/gsPrimitive.c b/ee/gs/src/gsPrimitive.c index 2bcc486..121b2d5 100644 --- a/ee/gs/src/gsPrimitive.c +++ b/ee/gs/src/gsPrimitive.c @@ -357,8 +357,8 @@ void gsKit_prim_triangle_3d(GSGLOBAL *gsGlobal, float x1, float y1, int iz1, float x3, float y3, int iz3, u64 color) { u64* p_data; - int qsize = 3; - int bsize = 48; + int qsize = 4; + int bsize = 64; int ix1 = gsKit_float_to_int_x(gsGlobal, x1); int iy1 = gsKit_float_to_int_y(gsGlobal, y1);