mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 17:43:02 +00:00
(D3D11) better handling of FBO scale.
This commit is contained in:
parent
7f75e9f4cf
commit
2a25e284af
@ -708,6 +708,9 @@ static bool d3d11_init_frame_textures(d3d11_video_t* d3d11, unsigned width, unsi
|
|||||||
{
|
{
|
||||||
struct video_shader_pass* pass = &d3d11->shader_preset->pass[i];
|
struct video_shader_pass* pass = &d3d11->shader_preset->pass[i];
|
||||||
|
|
||||||
|
if(pass->fbo.valid)
|
||||||
|
{
|
||||||
|
|
||||||
switch (pass->fbo.type_x)
|
switch (pass->fbo.type_x)
|
||||||
{
|
{
|
||||||
case RARCH_SCALE_INPUT:
|
case RARCH_SCALE_INPUT:
|
||||||
@ -726,6 +729,9 @@ static bool d3d11_init_frame_textures(d3d11_video_t* d3d11, unsigned width, unsi
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!width)
|
||||||
|
width = d3d11->vp.width;
|
||||||
|
|
||||||
switch (pass->fbo.type_y)
|
switch (pass->fbo.type_y)
|
||||||
{
|
{
|
||||||
case RARCH_SCALE_INPUT:
|
case RARCH_SCALE_INPUT:
|
||||||
@ -744,11 +750,15 @@ static bool d3d11_init_frame_textures(d3d11_video_t* d3d11, unsigned width, unsi
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!width)
|
|
||||||
width = d3d11->vp.width;
|
|
||||||
|
|
||||||
if (!height)
|
if (!height)
|
||||||
height = d3d11->vp.height;
|
height = d3d11->vp.height;
|
||||||
|
}
|
||||||
|
else if (i == (d3d11->shader_preset->passes - 1))
|
||||||
|
{
|
||||||
|
width = d3d11->vp.width;
|
||||||
|
height = d3d11->vp.height;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
RARCH_LOG("[D3D11]: Updating framebuffer size %u x %u.\n", width, height);
|
RARCH_LOG("[D3D11]: Updating framebuffer size %u x %u.\n", width, height);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user