From 9c471fe3efe7413b76eeb70b480de9e9c8f19b86 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 14 Mar 2023 15:01:07 +0100 Subject: GraphUI: GLButton: Don't pass FBO size @ ctor, calculate true view-size @ 1st draw --- src/demos/com/jogamp/opengl/demos/graph/ui/GPUUISceneGLListener0A.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/demos/com/jogamp') diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/GPUUISceneGLListener0A.java b/src/demos/com/jogamp/opengl/demos/graph/ui/GPUUISceneGLListener0A.java index c73cb7526..ef48b19df 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/GPUUISceneGLListener0A.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/GPUUISceneGLListener0A.java @@ -624,8 +624,7 @@ public class GPUUISceneGLListener0A implements GLEventListener { } final GLButton glelButton = new GLButton(sceneUICntrl.getVertexFactory(), renderModes, button2XSize, button2YSize, - texUnitGLELButton, glel, false /* useAlpha */, - (int)(button2XSize), (int)(button2YSize)); + texUnitGLELButton, glel, false /* useAlpha */); glelButton.setName(BUTTON_GLEL); glelButton.setToggleable(true); glelButton.setToggle(false); // toggle == true -> animation -- cgit v1.2.3