From 8d4c721ee46e658382cd105763d46da4480eb4a7 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 10 Nov 2015 22:00:35 +0100 Subject: [PATCH] Move set_final_viewport to d3d_set_viewport_wrap --- 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 5f8082fc81..ca6b317f65 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -399,6 +399,9 @@ static void d3d_set_viewport_wrap(void *data, d3d_set_viewport(d3dr, &vp_full); else d3d_set_viewport(d3dr, &d3d->final_viewport); + + d3d->renderchain_driver->set_final_viewport(d3d, + d3d->renderchain_data, &d3d->final_viewport); } bool d3d_restore(d3d_video_t *d3d) @@ -1670,8 +1673,7 @@ static bool d3d_frame(void *data, const void *frame, d3d_set_viewport_wrap(d3d, width, height, false, true); - d3d->renderchain_driver->set_final_viewport(d3d, - d3d->renderchain_data, &d3d->final_viewport); + } /* render_chain() only clears out viewport,