commit ceed2df6a9456c620a5a84cba1e79f9529e83ed9
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Wed May 20 12:05:59 2020 +0100

    Change abortAll to removeAll in effectQueues (for consistency)
    Remove all pre-effects from the component queues when they are not used anymore.

diff --git a/src/main/java/org/distorted/library/effectqueue/EffectQueue.java b/src/main/java/org/distorted/library/effectqueue/EffectQueue.java
index 0f68dfc..3d4099c 100644
--- a/src/main/java/org/distorted/library/effectqueue/EffectQueue.java
+++ b/src/main/java/org/distorted/library/effectqueue/EffectQueue.java
@@ -345,7 +345,7 @@ public abstract class EffectQueue implements InternalMaster.Slave
 // we do want to notify Listeners if they called 'abortAll' themselves but don't want to notify
 // them if it is the library itself which is releasing resources.
 
-  public synchronized int abortAll(boolean notify)
+  public synchronized int removeAll(boolean notify)
     {
     mJobs.add(new Job(DETALL,0,notify,null));
     InternalMaster.newSlave(this);
diff --git a/src/main/java/org/distorted/library/main/DistortedEffects.java b/src/main/java/org/distorted/library/main/DistortedEffects.java
index b87b96c..80f8e18 100644
--- a/src/main/java/org/distorted/library/main/DistortedEffects.java
+++ b/src/main/java/org/distorted/library/main/DistortedEffects.java
@@ -104,7 +104,7 @@ public class DistortedEffects
 
     for( int i=0; i<EffectType.LENGTH; i++)
       {
-      aborted += mQueues[i].abortAll(true);
+      aborted += mQueues[i].removeAll(true);
       }
 
     return aborted;
@@ -120,7 +120,7 @@ public class DistortedEffects
   public int abortByType(EffectType type)
     {
     int num = type.ordinal();
-    return mQueues[num].abortAll(true);
+    return mQueues[num].removeAll(true);
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/main/java/org/distorted/library/mesh/MeshBase.java b/src/main/java/org/distorted/library/mesh/MeshBase.java
index 4d91805..34bfd9c 100644
--- a/src/main/java/org/distorted/library/mesh/MeshBase.java
+++ b/src/main/java/org/distorted/library/mesh/MeshBase.java
@@ -302,6 +302,13 @@ public abstract class MeshBase
        }
 
      GLES30.glUnmapBuffer(GLES30.GL_TRANSFORM_FEEDBACK);
+
+     int numComp = mComponent.size();
+
+     for(int i=0; i<numComp; i++)
+       {
+       mComponent.get(i).mQueue.removeAll(false);
+       }
      }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
