From 0aa1164a6f831f26303718c94a91cf1db92cb8b3 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Thu, 1 Feb 2018 16:29:40 +0100 Subject: [PATCH] (D3D11) fix fbo size when no scale factor is specified. --- gfx/drivers/d3d11.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gfx/drivers/d3d11.c b/gfx/drivers/d3d11.c index 559518a2d2..f6db4471a0 100644 --- a/gfx/drivers/d3d11.c +++ b/gfx/drivers/d3d11.c @@ -709,7 +709,8 @@ static bool d3d11_init_frame_textures(d3d11_video_t* d3d11, unsigned width, unsi switch (pass->fbo.type_x) { case RARCH_SCALE_INPUT: - width *= pass->fbo.scale_x; + if (pass->fbo.scale_x) + width *= pass->fbo.scale_x; break; case RARCH_SCALE_VIEWPORT: @@ -727,7 +728,8 @@ static bool d3d11_init_frame_textures(d3d11_video_t* d3d11, unsigned width, unsi switch (pass->fbo.type_y) { case RARCH_SCALE_INPUT: - height *= pass->fbo.scale_y; + if (pass->fbo.scale_y) + height *= pass->fbo.scale_y; break; case RARCH_SCALE_VIEWPORT: