From db89bbc2cec7d3d2926367acf73158dea961a43e Mon Sep 17 00:00:00 2001 From: cutealien Date: Mon, 25 Feb 2019 14:44:36 +0000 Subject: [PATCH] Fixing SViewFrustum::recalculateBoundingBox once more. Sorry, missed some points in last fix. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5775 dfc29bdd-3216-0410-991c-e03cc46cb475 --- include/SViewFrustum.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/SViewFrustum.h b/include/SViewFrustum.h index bd175980..68bc32b9 100644 --- a/include/SViewFrustum.h +++ b/include/SViewFrustum.h @@ -263,9 +263,13 @@ namespace scene inline void SViewFrustum::recalculateBoundingBox() { boundingBox.reset(getNearLeftUp()); + boundingBox.addInternalPoint(getNearRightUp()); + boundingBox.addInternalPoint(getNearLeftDown()); + boundingBox.addInternalPoint(getNearRightDown()); boundingBox.addInternalPoint(getFarRightUp()); boundingBox.addInternalPoint(getFarLeftDown()); boundingBox.addInternalPoint(getFarRightDown()); + boundingBox.addInternalPoint(getFarLeftUp()); // Also recalculate the bounding sphere when the bbox changes recalculateBoundingSphere();