[GX] fix lockup when using overlays

This commit is contained in:
Toad King 2014-02-20 18:58:40 -05:00
parent 02fd6dffbd
commit 96a339cb6f

View File

@ -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));