From bfe0eb9bfbd1aa9055619a37b781b75aca4db401 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 10 Nov 2015 05:26:37 +0100 Subject: [PATCH] Call gfx_ctx_set_resize from d3d_frame --- gfx/d3d/d3d.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 88f41c6877..b77ef92755 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -1679,13 +1679,15 @@ static bool d3d_frame(void *data, const void *frame, 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, video_driver_get_aspect_ratio()); d3d->renderchain_driver->set_final_viewport(d3d, d3d->renderchain_data, &d3d->final_viewport); - - d3d->should_resize = false; } /* render_chain() only clears out viewport,