From dd67c91abd2e5f549fe35f590f37c5d6c732a100 Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Thu, 25 Apr 2024 03:27:51 +0200 Subject: Math: Align Frustum/Matrix dependency w/ native jaulib --- src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeClippingDemo01.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/demos') diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeClippingDemo01.java b/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeClippingDemo01.java index 9df5c1591..69751c458 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeClippingDemo01.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeClippingDemo01.java @@ -161,7 +161,7 @@ public class UIShapeClippingDemo01 { final boolean isOutMv = frustumCbMv.isOutside( shapedMv ); - final Frustum frustumPMv = pmv.getPMv().updateFrustumPlanes(new Frustum()); + final Frustum frustumPMv = new Frustum().setFromMat(pmv.getPMv()); final boolean isOutPMv = frustumPMv.isOutside( shapeBox ); System.err.println("ClipBox "+box); -- cgit v1.2.3