summaryrefslogtreecommitdiffstats
path: root/src/graphui/classes
diff options
context:
space:
mode:
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();
}