mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
[GX] fix lockup when using overlays
This commit is contained in:
parent
02fd6dffbd
commit
96a339cb6f
@ -961,14 +961,12 @@ static bool gx_frame(void *data, const void *frame,
|
||||
GX_SetCurrentMtx(GX_PNMTX0);
|
||||
GX_LoadTexObj(&g_tex.obj, GX_TEXMAP0);
|
||||
GX_CallDispList(display_list, display_list_size);
|
||||
GX_DrawDone();
|
||||
|
||||
if (gx->rgui_texture_enable)
|
||||
{
|
||||
GX_SetCurrentMtx(GX_PNMTX1);
|
||||
GX_LoadTexObj(&menu_tex.obj, GX_TEXMAP0);
|
||||
GX_CallDispList(display_list, display_list_size);
|
||||
GX_DrawDone();
|
||||
}
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
@ -976,6 +974,8 @@ static bool gx_frame(void *data, const void *frame,
|
||||
gx_render_overlay(gx);
|
||||
#endif
|
||||
|
||||
GX_DrawDone();
|
||||
|
||||
char fps_txt[128], fps_text_buf[128];
|
||||
bool fps_draw = g_settings.fps_show;
|
||||
gfx_get_fps(fps_txt, sizeof(fps_txt), fps_draw ? fps_text_buf : NULL, sizeof(fps_text_buf));
|
||||
|
Loading…
Reference in New Issue
Block a user