From 9bfb031d4eca9013d0e3fd24d6266e689bbe2b15 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Thu, 30 Mar 2017 12:15:25 +0200 Subject: [PATCH] Use the oversample factor for the reccommended target size --- src/OSVRTrackedDevice.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/OSVRTrackedDevice.cpp b/src/OSVRTrackedDevice.cpp index b450f24..2bf5289 100644 --- a/src/OSVRTrackedDevice.cpp +++ b/src/OSVRTrackedDevice.cpp @@ -222,12 +222,11 @@ bool OSVRTrackedDevice::IsDisplayRealDisplay() void OSVRTrackedDevice::GetRecommendedRenderTargetSize(uint32_t* width, uint32_t* height) { - //const double overfill_factor = renderManagerConfig_.getRenderOverfillFactor(); - const double overfill_factor = 1.0; + const double oversample_factor = renderManagerConfig_.getRenderOversampleFactor(); const auto bounds = getWindowBounds(display_, scanoutOrigin_); - *width = static_cast(bounds.width * overfill_factor); - *height = static_cast(bounds.height * overfill_factor); + *width = static_cast(bounds.width * oversample_factor); + *height = static_cast(bounds.height * oversample_factor); OSVR_LOG(trace) << "GetRecommendedRenderTargetSize(): width = " << *width << ", height = " << *height << "."; }