Fix cinematic GUI with direct3d9

This commit is contained in:
UnknownShadow200 2025-11-05 07:29:16 +11:00
parent 0e2c9177c0
commit 93f23448d0
1 changed files with 1 additions and 1 deletions

View File

@ -331,6 +331,7 @@ static void ShowCinematicBars() {
if (!bars_VB) bars_VB = Gfx_CreateDynamicVb(VERTEX_FORMAT_COLOURED, BARS_VB_COUNT); if (!bars_VB) bars_VB = Gfx_CreateDynamicVb(VERTEX_FORMAT_COLOURED, BARS_VB_COUNT);
if (!bars_VB) return; if (!bars_VB) return;
Gfx_SetVertexFormat(VERTEX_FORMAT_COLOURED);
count = Gui.BarSize == 1.0f ? 4 : BARS_VB_COUNT; count = Gui.BarSize == 1.0f ? 4 : BARS_VB_COUNT;
color = Gui.CinematicBarColor; color = Gui.CinematicBarColor;
@ -348,7 +349,6 @@ static void ShowCinematicBars() {
} }
Gfx_UnlockDynamicVb(bars_VB); Gfx_UnlockDynamicVb(bars_VB);
Gfx_SetVertexFormat(VERTEX_FORMAT_COLOURED);
Gfx_DrawVb_IndexedTris(count); Gfx_DrawVb_IndexedTris(count);
} }