(D3D) Cleanup

This commit is contained in:
twinaphex 2015-04-06 06:46:35 +02:00
parent 39d371bcbb
commit ee94ba9a84

View File

@ -1585,13 +1585,15 @@ static bool d3d_frame(void *data, const void *frame,
d3d_clear(d3dr, 0, 0, D3DCLEAR_TARGET, 0, 1, 0);
}
if (
!renderchain_render(
#ifdef _XBOX
if (!renderchain_render(d3d, frame, width, height,
pitch, d3d->dev_rotation))
d3d,
#else
if (!renderchain_render(d3d->chain, frame, width,
height, pitch, d3d->dev_rotation))
d3d->chain,
#endif
frame, width, height,
pitch, d3d->dev_rotation))
{
RARCH_ERR("[D3D]: Failed to render scene.\n");
return false;