Skip to content

Commit 9f4f16c

Browse files
committed
Merge pull request godotengine#110672 from Kaleb-Reid/fallback-scaling-type
Use correct scaling type when falling back to bilinear
2 parents f85dc07 + e5cd234 commit 9f4f16c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

servers/rendering/renderer_viewport.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,15 @@ void RendererViewport::_configure_3d_render_buffers(Viewport *p_viewport) {
192192
// Fall back to bilinear scaling.
193193
WARN_PRINT_ONCE("FSR 3D resolution scaling is not designed for downsampling. Falling back to bilinear 3D resolution scaling.");
194194
scaling_3d_mode = RS::VIEWPORT_SCALING_3D_MODE_BILINEAR;
195+
scaling_type = RS::scaling_3d_mode_type(scaling_3d_mode);
195196
}
196197

197198
if (scaling_3d_is_not_bilinear && !upscaler_available) {
198199
// FSR is not actually available.
199200
// Fall back to bilinear scaling.
200201
WARN_PRINT_ONCE("FSR 3D resolution scaling is not available. Falling back to bilinear 3D resolution scaling.");
201202
scaling_3d_mode = RS::VIEWPORT_SCALING_3D_MODE_BILINEAR;
203+
scaling_type = RS::scaling_3d_mode_type(scaling_3d_mode);
202204
}
203205

204206
if (use_taa && (scaling_type == RS::VIEWPORT_SCALING_3D_TYPE_TEMPORAL)) {

0 commit comments

Comments
 (0)