mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #110672 from Kaleb-Reid/fallback-scaling-type
Use correct scaling type when falling back to bilinear
This commit is contained in:
commit
9f4f16c588
1 changed files with 2 additions and 0 deletions
|
@ -192,6 +192,7 @@ void RendererViewport::_configure_3d_render_buffers(Viewport *p_viewport) {
|
|||
// Fall back to bilinear scaling.
|
||||
WARN_PRINT_ONCE("FSR 3D resolution scaling is not designed for downsampling. Falling back to bilinear 3D resolution scaling.");
|
||||
scaling_3d_mode = RS::VIEWPORT_SCALING_3D_MODE_BILINEAR;
|
||||
scaling_type = RS::scaling_3d_mode_type(scaling_3d_mode);
|
||||
}
|
||||
|
||||
if (scaling_3d_is_not_bilinear && !upscaler_available) {
|
||||
|
@ -199,6 +200,7 @@ void RendererViewport::_configure_3d_render_buffers(Viewport *p_viewport) {
|
|||
// Fall back to bilinear scaling.
|
||||
WARN_PRINT_ONCE("FSR 3D resolution scaling is not available. Falling back to bilinear 3D resolution scaling.");
|
||||
scaling_3d_mode = RS::VIEWPORT_SCALING_3D_MODE_BILINEAR;
|
||||
scaling_type = RS::scaling_3d_mode_type(scaling_3d_mode);
|
||||
}
|
||||
|
||||
if (use_taa && (scaling_type == RS::VIEWPORT_SCALING_3D_TYPE_TEMPORAL)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue