From 120e3eebbd89cbc3bae1e920dbba9073dd686891 Mon Sep 17 00:00:00 2001 From: Tiago Chaves Date: Mon, 4 Aug 2025 03:52:11 -0400 Subject: [PATCH] Fix lc_camera_set_clipping_planes_within_bounds Note that `temp` wasn't used. --- cpp/LabCamera.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpp/LabCamera.cpp b/cpp/LabCamera.cpp index 828819d..df91cf0 100644 --- a/cpp/LabCamera.cpp +++ b/cpp/LabCamera.cpp @@ -1571,9 +1571,7 @@ void lc_camera_set_clipping_planes_within_bounds(lc_camera* cam, float min_near, if (clip_far < clip_near) { - float temp = clip_far; - clip_far = clip_near; - clip_near = clip_far; + std::swap(clip_far, clip_near); } cam->optics.znear = clip_near;