diff --git a/filament/src/Renderer.cpp b/filament/src/Renderer.cpp index 61c799d349..a9d80e60f7 100644 --- a/filament/src/Renderer.cpp +++ b/filament/src/Renderer.cpp @@ -613,13 +613,14 @@ void FRenderer::renderJob(ArenaScope& arena, FView& view) { } if (scaled) { mightNeedFinalBlit = false; + auto viewport = DEBUG_DYNAMIC_SCALING ? svp : vp; if (UTILS_LIKELY(!blending && dsrOptions.quality == QualityLevel::LOW)) { input = ppm.opaqueBlit(fg, input, { - .width = vp.width, .height = vp.height, + .width = viewport.width, .height = viewport.height, .format = colorGradingConfig.ldrFormat }, SamplerMagFilter::LINEAR); } else { input = ppm.blendBlit(fg, blending, dsrOptions, input, { - .width = vp.width, .height = vp.height, + .width = viewport.width, .height = viewport.height, .format = colorGradingConfig.ldrFormat }); } }