From c947fe21a0c62b4aa3b5af66e3109d9d50833d29 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 19 Apr 2023 20:48:43 +0200 Subject: Graph Region.addOutlineShape(): Fix DEBUG_INSTANCE path, enable perf counter if disabled. --- src/jogl/classes/com/jogamp/graph/curve/Region.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/jogl/classes/com/jogamp/graph/curve') diff --git a/src/jogl/classes/com/jogamp/graph/curve/Region.java b/src/jogl/classes/com/jogamp/graph/curve/Region.java index e897acba1..0263b102f 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/Region.java +++ b/src/jogl/classes/com/jogamp/graph/curve/Region.java @@ -547,6 +547,9 @@ public abstract class Region { if( null == perf && !DEBUG_INSTANCE ) { addOutlineShape0(shape, t, rgbaColor); } else { + if( null == perf ) { + perfCounter().enable(true); + } addOutlineShape1(shape, t, rgbaColor); } markShapeDirty(); -- cgit v1.2.3