summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-04-19 20:48:43 +0200
committerSven Gothel <[email protected]>2023-04-19 20:48:43 +0200
commitc947fe21a0c62b4aa3b5af66e3109d9d50833d29 (patch)
treed193520c632bc3e9a8aea0a2483fc4800e47885e /src
parent93fede2562cab03478bbc1e0df1846a42103c563 (diff)
Graph Region.addOutlineShape(): Fix DEBUG_INSTANCE path, enable perf counter if disabled.
Diffstat (limited to 'src')
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/Region.java3
1 files changed, 3 insertions, 0 deletions
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();