From e48289406ee89d382d05b775cbe7379100632a23 Mon Sep 17 00:00:00 2001 From: Hat Kid <6624576+Hat-Kid@users.noreply.github.com> Date: Sun, 31 May 2026 16:19:10 +0200 Subject: [PATCH] build-actor: set `shader-cnt` to 0 for dummy `merc-fragment` (#4296) Inside the build actor tool's dummy `merc-fragment`'s `merc-fp-data`, the `shader-cnt` is set to `1`, which means that `login-adgifs` runs for the fragment and attempts to login the texture. We don't need to do this for custom actors and it can cause crashes during level unloading when textures get unlinked, so we can just set the `shader-cnt` to `0` to prevent this. --- goalc/build_actor/jak1/build_actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goalc/build_actor/jak1/build_actor.cpp b/goalc/build_actor/jak1/build_actor.cpp index 54af30cca7..1d5c76543c 100644 --- a/goalc/build_actor/jak1/build_actor.cpp +++ b/goalc/build_actor/jak1/build_actor.cpp @@ -386,7 +386,7 @@ static size_t gen_dummy_frag_geo(DataObjectGenerator& gen) { 0x432e7f86, 0x254646, 0x71a20044, 0x43657f86, 0x154949, 0x43400024, 0x719b8186, 0x154c4c, 0x71c00064, 0x71d28186, 0x254f4f, 0x435e0000, 0x71d27f86, 0x250707, 0x435e8000, 0x43658186, 0x150d0d, 0x43408024, 0x0, 0x0, 0x0, - 0xcb01005a, 0xcb00fffa, 0xcb01005a, 0x2101e01, 0x0, 0x0, 0x306, + 0xcb01005a, 0xcb00fffa, 0xcb01005a, 0x2101e00, 0x0, 0x0, 0x306, 0x4030000, 0x120, 0x0, 0x1cf02c14, 0x66c801d, 0x0, 0x0, 0x34, 0x0, 0x0, 0x0, 0x8, 0x0, 0x44, 0x80, 0x42, 0x0,