fix dynamic scaling internal debugging

This commit is contained in:
Mathias Agopian
2021-10-07 19:51:55 -07:00
committed by Mathias Agopian
parent aacaf5055e
commit fbb406ca7d
+3 -2
View File
@@ -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 });
}
}