From ee94ba9a845997b4bb866c81c5bd6a1aa54c4c3e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 6 Apr 2015 06:46:35 +0200 Subject: [PATCH] (D3D) Cleanup --- gfx/d3d/d3d.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 11b5913c71..0b48e5e3f5 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -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;