From 5c9a502657dc821b1906d813d442b40e7dec6cc0 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Mon, 31 Jul 2023 22:34:54 +0200 Subject: [PATCH] port: fix Gfx being 16 bytes --- include/PR/gbi.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/PR/gbi.h b/include/PR/gbi.h index e10a51b95..25a8af0a4 100644 --- a/include/PR/gbi.h +++ b/include/PR/gbi.h @@ -1534,11 +1534,12 @@ typedef union { Gtri tri; Gtri4 tri4; Gline3D line; + Gtexture texture; +#ifdef PLATFORM_N64 /* the rest is not needed on other platforms and some of em screw up the size */ Gpopmtx popmtx; Gsegment segment; GsetothermodeH setothermodeH; GsetothermodeL setothermodeL; - Gtexture texture; Gperspnorm perspnorm; Gsetimg setimg; Gsetcombine setcombine; @@ -1548,6 +1549,7 @@ typedef union { Gloadtile loadtile; /* use for loadblock also, th is dxt */ Gsettilesize settilesize; Gloadtlut loadtlut; +#endif GunkC0 unkc0; long long int force_structure_alignment; } Gfx;