From b351e8cd75aacd30d0cc4ec005f157a9f5f7d79c Mon Sep 17 00:00:00 2001 From: pblack Date: Tue, 8 Oct 2019 12:12:06 +1300 Subject: [PATCH] aux/util: Don't overwrite distortion info --- src/xrt/auxiliary/util/u_device.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xrt/auxiliary/util/u_device.c b/src/xrt/auxiliary/util/u_device.c index 216faffd5..30403585b 100644 --- a/src/xrt/auxiliary/util/u_device.c +++ b/src/xrt/auxiliary/util/u_device.c @@ -159,8 +159,10 @@ u_device_setup_split_side_by_side(struct xrt_device *xdev, // Common xdev->hmd->blend_mode = XRT_BLEND_MODE_OPAQUE; - xdev->hmd->distortion.models = XRT_DISTORTION_MODEL_NONE; - xdev->hmd->distortion.preferred = XRT_DISTORTION_MODEL_NONE; + if (xdev->hmd->distortion.models == 0) { + xdev->hmd->distortion.models = XRT_DISTORTION_MODEL_NONE; + xdev->hmd->distortion.preferred = XRT_DISTORTION_MODEL_NONE; + } xdev->hmd->screens[0].w_pixels = info->display.w_pixels; xdev->hmd->screens[0].h_pixels = info->display.h_pixels;