mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-11 10:13:53 +00:00
(360) Do Clear() at start of xdk_frame - should do menu
rendering properly now
This commit is contained in:
parent
4df53478a9
commit
3fbb716a8e
@ -1206,12 +1206,8 @@ bool rmenu_iterate(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
if (g_extern.main_is_init)
|
||||
rarch_render_cached_frame();
|
||||
|
||||
app.Render();
|
||||
XuiTimersRun();
|
||||
|
||||
switch(g_extern.console.rmenu.input_loop)
|
||||
{
|
||||
case INPUT_LOOP_FILEBROWSER:
|
||||
|
@ -700,6 +700,8 @@ static bool xdk_d3d_frame(void *data, const void *frame,
|
||||
bool soft_filter_enable = g_extern.console.screen.state.soft_filter.enable;
|
||||
#endif
|
||||
|
||||
d3d->d3d_render_device->Clear(0, NULL, D3DCLEAR_TARGET, 0xff000000, 1.0f, 0);
|
||||
|
||||
if (d3d->last_width != width || d3d->last_height != height)
|
||||
{
|
||||
D3DLOCKED_RECT d3dlr;
|
||||
@ -893,7 +895,14 @@ static bool xdk_d3d_frame(void *data, const void *frame,
|
||||
if (msg)
|
||||
d3d->font_ctx->render_msg_place(d3d, msg_width, msg_height, 0.0f, 0, msg);
|
||||
|
||||
if (!g_extern.draw_menu)
|
||||
if (g_extern.draw_menu)
|
||||
{
|
||||
#ifdef _XBOX360
|
||||
app.Render();
|
||||
XuiTimersRun();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
gfx_ctx_xdk_swap_buffers();
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user