mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-16 15:27:41 +00:00
(D3D) Move ifndef XBOX functionality to D3D context driver
This commit is contained in:
parent
bf4dbede7a
commit
4320efa9a1
@ -432,15 +432,16 @@ static void gfx_ctx_d3d_get_video_size(void *data, unsigned *width, unsigned *he
|
||||
|
||||
static void gfx_ctx_d3d_swap_interval(void *data, unsigned interval)
|
||||
{
|
||||
(void)data;
|
||||
#ifdef _XBOX
|
||||
d3d_video_t *d3d = (d3d_video_t*)data;
|
||||
#ifdef _XBOX
|
||||
LPDIRECT3DDEVICE d3dr = d3d->dev;
|
||||
|
||||
if (interval)
|
||||
d3dr->SetRenderState(XBOX_PRESENTATIONINTERVAL, D3DPRESENT_INTERVAL_ONE);
|
||||
else
|
||||
d3dr->SetRenderState(XBOX_PRESENTATIONINTERVAL, D3DPRESENT_INTERVAL_IMMEDIATE);
|
||||
#else
|
||||
d3d_restore(d3d);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -794,9 +794,6 @@ static void d3d_set_nonblock_state(void *data, bool state)
|
||||
|
||||
if (d3d->ctx_driver && d3d->ctx_driver->swap_interval)
|
||||
d3d->ctx_driver->swap_interval(d3d, state ? 0 : 1);
|
||||
#ifndef _XBOX
|
||||
d3d_restore(d3d);
|
||||
#endif
|
||||
}
|
||||
|
||||
static bool d3d_alive(void *data)
|
||||
|
@ -948,9 +948,6 @@ static void d3d_set_nonblock_state(void *data, bool state)
|
||||
|
||||
if (d3d->ctx_driver && d3d->ctx_driver->swap_interval)
|
||||
d3d->ctx_driver->swap_interval(d3d, state ? 0 : 1);
|
||||
#ifndef _XBOX
|
||||
d3d_restore(d3d);
|
||||
#endif
|
||||
}
|
||||
|
||||
static bool d3d_alive(void *data)
|
||||
|
Loading…
Reference in New Issue
Block a user