mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Call gfx_ctx_set_resize from d3d_frame
This commit is contained in:
parent
5cbfbb190c
commit
bfe0eb9bfb
@ -1679,13 +1679,15 @@ static bool d3d_frame(void *data, const void *frame,
|
|||||||
|
|
||||||
if (d3d->should_resize)
|
if (d3d->should_resize)
|
||||||
{
|
{
|
||||||
|
d3d->should_resize = false;
|
||||||
|
|
||||||
|
gfx_ctx_set_resize(d3d, width, height);
|
||||||
|
|
||||||
d3d_calculate_rect(d3d, width, width, d3d->video_info.force_aspect,
|
d3d_calculate_rect(d3d, width, width, d3d->video_info.force_aspect,
|
||||||
video_driver_get_aspect_ratio());
|
video_driver_get_aspect_ratio());
|
||||||
|
|
||||||
d3d->renderchain_driver->set_final_viewport(d3d,
|
d3d->renderchain_driver->set_final_viewport(d3d,
|
||||||
d3d->renderchain_data, &d3d->final_viewport);
|
d3d->renderchain_data, &d3d->final_viewport);
|
||||||
|
|
||||||
d3d->should_resize = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* render_chain() only clears out viewport,
|
/* render_chain() only clears out viewport,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user