Implement the HOOK_ON_HUD_RENDER_BEHIND fix ON THE RIGHT BRANCH

This commit is contained in:
Agent X 2026-05-09 16:45:31 -04:00
parent 63f0067f3b
commit f2c5b4eb13

View file

@ -510,6 +510,15 @@ void render_game(void) {
}
}
} else {
// this will get drawn over anyway so it doesn't
// matter to try and setup the rendering
//
// call this so any code running will still run
// even if nothing is shown on screen
if (!gDjuiDisabled) {
smlua_call_event_hooks(HOOK_ON_HUD_RENDER_BEHIND, djui_reset_hud_params);
}
render_text_labels();
if (gViewportClip != NULL) {
clear_viewport(gViewportClip, gWarpTransFBSetColor);