aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-01-16 05:23:27 +0100
committerSven Göthel <[email protected]>2024-01-16 05:23:27 +0100
commita8cf4cd506297cd05175e43eeefa4e6d7eabb960 (patch)
tree73729d23874e7bb64d2e9ad52ab66ddffd4c3368 /src
parent6b1979992a7da2573c420ce3eb22f35abcbd35b7 (diff)
GraphUI GLButton: Filter out Region.AA_RENDERING_MASK in ctor, as GLEventListener renders into FBO at correct resolution.
Diffstat (limited to 'src')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/shapes/GLButton.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/GLButton.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/GLButton.java
index c0d911646..9f1bc5405 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/shapes/GLButton.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/GLButton.java
@@ -36,6 +36,7 @@ import com.jogamp.opengl.GLDrawable;
import com.jogamp.opengl.GLDrawableFactory;
import com.jogamp.opengl.GLEventListener;
import com.jogamp.opengl.GLOffscreenAutoDrawable;
+import com.jogamp.graph.curve.Region;
import com.jogamp.graph.curve.opengl.RegionRenderer;
import com.jogamp.graph.ui.GraphShape;
import com.jogamp.opengl.FBObject;
@@ -72,7 +73,7 @@ public class GLButton extends TexSeqButton {
public GLButton(final int renderModes, final float width, final float height,
final int textureUnit, final GLEventListener glel, final boolean useAlpha) {
- super(renderModes, width, height, new ImageSequence(textureUnit, true));
+ super(renderModes & ~Region.AA_RENDERING_MASK, width, height, new ImageSequence(textureUnit, true));
this.glel = glel;
this.useAlpha = useAlpha;