mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Merge pull request #11942 from barbudreadmon/patch-1
fix slang shaders with rotation
This commit is contained in:
commit
1eb45fdf9b
@ -1028,7 +1028,7 @@ Size2D Pass::get_output_size(const Size2D &original,
|
||||
break;
|
||||
|
||||
case GLSLANG_FILTER_CHAIN_SCALE_VIEWPORT:
|
||||
width = current_viewport.width * pass_info.scale_x;
|
||||
width = (retroarch_get_rotation() % 2 ? current_viewport.height : current_viewport.width) * pass_info.scale_x;
|
||||
break;
|
||||
|
||||
case GLSLANG_FILTER_CHAIN_SCALE_ABSOLUTE:
|
||||
@ -1050,7 +1050,7 @@ Size2D Pass::get_output_size(const Size2D &original,
|
||||
break;
|
||||
|
||||
case GLSLANG_FILTER_CHAIN_SCALE_VIEWPORT:
|
||||
height = current_viewport.height * pass_info.scale_y;
|
||||
height = (retroarch_get_rotation() % 2 ? current_viewport.width : current_viewport.height) * pass_info.scale_y;
|
||||
break;
|
||||
|
||||
case GLSLANG_FILTER_CHAIN_SCALE_ABSOLUTE:
|
||||
|
@ -1486,7 +1486,7 @@ Size2D Pass::get_output_size(const Size2D &original,
|
||||
break;
|
||||
|
||||
case GLSLANG_FILTER_CHAIN_SCALE_VIEWPORT:
|
||||
width = current_viewport.width * pass_info.scale_x;
|
||||
width = (retroarch_get_rotation() % 2 ? current_viewport.height : current_viewport.width) * pass_info.scale_x;
|
||||
break;
|
||||
|
||||
case GLSLANG_FILTER_CHAIN_SCALE_ABSOLUTE:
|
||||
@ -1508,7 +1508,7 @@ Size2D Pass::get_output_size(const Size2D &original,
|
||||
break;
|
||||
|
||||
case GLSLANG_FILTER_CHAIN_SCALE_VIEWPORT:
|
||||
height = current_viewport.height * pass_info.scale_y;
|
||||
height = (retroarch_get_rotation() % 2 ? current_viewport.width : current_viewport.height) * pass_info.scale_y;
|
||||
break;
|
||||
|
||||
case GLSLANG_FILTER_CHAIN_SCALE_ABSOLUTE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user