Call d3d_restore from d3d.cpp

This commit is contained in:
twinaphex 2016-01-07 00:38:42 +01:00
parent 70a6da0491
commit 38a58a2a8a
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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
}