mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
parent
0c07dc6f24
commit
713de18a04
@ -1326,6 +1326,13 @@ static void cg_d3d9_renderchain_set_vertices(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void cg_d3d9_renderchain_set_viewport(
|
||||||
|
cg_renderchain_t *chain,
|
||||||
|
D3DVIEWPORT *vp)
|
||||||
|
{
|
||||||
|
d3d_set_viewports(chain->dev, vp);
|
||||||
|
}
|
||||||
|
|
||||||
static void cg_d3d9_renderchain_blit_to_texture(
|
static void cg_d3d9_renderchain_blit_to_texture(
|
||||||
cg_renderchain_t *chain,
|
cg_renderchain_t *chain,
|
||||||
const void *frame,
|
const void *frame,
|
||||||
@ -1532,7 +1539,7 @@ static bool d3d9_cg_renderchain_render(
|
|||||||
viewport.Height = out_height;
|
viewport.Height = out_height;
|
||||||
|
|
||||||
if (chain)
|
if (chain)
|
||||||
d3d_set_viewports(chain->dev, &viewport);
|
cg_d3d9_renderchain_set_viewport(chain, &viewport);
|
||||||
|
|
||||||
cg_d3d9_renderchain_set_vertices(chain, from_pass,
|
cg_d3d9_renderchain_set_vertices(chain, from_pass,
|
||||||
current_width, current_height,
|
current_width, current_height,
|
||||||
@ -1558,7 +1565,7 @@ static bool d3d9_cg_renderchain_render(
|
|||||||
current_width, current_height, chain->final_viewport);
|
current_width, current_height, chain->final_viewport);
|
||||||
|
|
||||||
if (chain)
|
if (chain)
|
||||||
d3d_set_viewports(chain->dev, &chain->final_viewport);
|
cg_d3d9_renderchain_set_viewport(chain, chain->final_viewport);
|
||||||
|
|
||||||
cg_d3d9_renderchain_set_vertices(chain, last_pass,
|
cg_d3d9_renderchain_set_vertices(chain, last_pass,
|
||||||
current_width, current_height,
|
current_width, current_height,
|
||||||
|
Loading…
Reference in New Issue
Block a user