Fix djui menu flashing (#1008)

Move djui_reset_hud_params() to after the djui display list save point

Resetting scissor/viewport before the save point caused the djui menu to rapidly
flicker when interpolating (and an interpolated HUD texture was rendered)

Thanks to PeachyPeach for finding the better fix

Co-authored-by: MysterD <myster@d>
This commit is contained in:
djoslin0 2025-11-16 15:27:59 -08:00 committed by GitHub
parent c87ae6a263
commit 2a95817d84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -176,10 +176,10 @@ void djui_reset_hud_params(void) {
void djui_render(void) {
if (!sDjuiInited || gDjuiDisabled) { return; }
djui_reset_hud_params();
sSavedDisplayListHead = gDisplayListHead;
gDjuiHudUtilsZ = 0;
djui_reset_hud_params();
create_dl_ortho_matrix();
djui_gfx_displaylist_begin();