summaryrefslogtreecommitdiffstats
path: root/src/graphui/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-14 15:04:33 +0100
committerSven Gothel <[email protected]>2023-03-14 15:04:33 +0100
commite219ce85b450f760671f07fde72c8d119616bb8f (patch)
tree9b40a3f59af1a330895c9a2d5f5c81e1551dc06b /src/graphui/classes
parent8f7f3f2c693b033e80b5b494c841a36dc5d2c2a8 (diff)
GraphUI: MediaButton: No need to re-create GLRegion (anymore), just markShapeDirty() to force reupload of texture-coordinates; Also don't mute audio, user shall configure the GLMediaPlayer...
Diffstat (limited to 'src/graphui/classes')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/gl/shapes/MediaButton.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/MediaButton.java b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/MediaButton.java
index 6fe3af1d5..bdeee1e6b 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/MediaButton.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/MediaButton.java
@@ -128,11 +128,7 @@ public class MediaButton extends TexSeqButton {
resetGL = false;
try {
mPlayer.initGL(gl);
- mPlayer.setAudioVolume( 0f );
- region.destroy(gl);
- region = null;
- validate(gl, renderer);
- markStateDirty(); // keep on going
+ region.markShapeDirty(); // reset texture data
} catch (final Exception e) {
e.printStackTrace();
}