mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Call d3d_restore from d3d.cpp
This commit is contained in:
parent
70a6da0491
commit
38a58a2a8a
@ -446,6 +446,9 @@ static void d3d_set_nonblock_state(void *data, bool state)
|
||||
d3d->video_info.vsync = !state;
|
||||
|
||||
gfx_ctx_swap_interval(state ? 0 : 1);
|
||||
#ifndef _XBOX
|
||||
d3d_restore();
|
||||
#endif
|
||||
}
|
||||
|
||||
static bool d3d_alive(void *data)
|
||||
|
@ -297,8 +297,6 @@ static void gfx_ctx_d3d_swap_interval(void *data, unsigned interval)
|
||||
D3DPRESENT_INTERVAL_ONE : D3DPRESENT_INTERVAL_IMMEDIATE;
|
||||
|
||||
d3d_set_render_state(d3d->dev, XBOX_PRESENTATIONINTERVAL, d3d_interval);
|
||||
#else
|
||||
d3d_restore(d3d);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user