(D3D11) fix fbo size when no scale factor is specified.

This commit is contained in:
aliaspider 2018-02-01 16:29:40 +01:00
parent 11a7171b51
commit 0aa1164a6f

View File

@ -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: