commit 7b8086eb85b7ff5c518f4389d1257f1bb2757afb
Author: Leszek Koltunski <leszek@distorted.org>
Date:   Wed Dec 14 23:23:36 2016 +0000

    Minor.

diff --git a/src/main/java/org/distorted/library/Distorted.java b/src/main/java/org/distorted/library/Distorted.java
index 7d28080..c2a8798 100644
--- a/src/main/java/org/distorted/library/Distorted.java
+++ b/src/main/java/org/distorted/library/Distorted.java
@@ -375,11 +375,11 @@ public class Distorted
  */
   public static void onDestroy()
     {
-    DistortedTexture.release();
-    DistortedFramebuffer.release();
-    DistortedObjectTree.release();
-    EffectQueue.release();
-    DistortedEffectQueues.release();
+    DistortedTexture.onDestroy();
+    DistortedFramebuffer.onDestroy();
+    DistortedObjectTree.onDestroy();
+    EffectQueue.onDestroy();
+    DistortedEffectQueues.onDestroy();
     EffectMessageSender.stopSending();
    
     mInitialized = false;
diff --git a/src/main/java/org/distorted/library/DistortedEffectQueues.java b/src/main/java/org/distorted/library/DistortedEffectQueues.java
index 2678705..373c395 100644
--- a/src/main/java/org/distorted/library/DistortedEffectQueues.java
+++ b/src/main/java/org/distorted/library/DistortedEffectQueues.java
@@ -132,7 +132,7 @@ public class DistortedEffectQueues
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-  static void release()
+  static void onDestroy()
     {
     mNextID = 0;
     }
diff --git a/src/main/java/org/distorted/library/DistortedFramebuffer.java b/src/main/java/org/distorted/library/DistortedFramebuffer.java
index be6b5ca..9b3d9dc 100644
--- a/src/main/java/org/distorted/library/DistortedFramebuffer.java
+++ b/src/main/java/org/distorted/library/DistortedFramebuffer.java
@@ -178,7 +178,7 @@ public class DistortedFramebuffer
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-  static synchronized void release()
+  static synchronized void onDestroy()
     {
     mListMarked = false;
     mList.clear();
diff --git a/src/main/java/org/distorted/library/DistortedObjectTree.java b/src/main/java/org/distorted/library/DistortedObjectTree.java
index db1247b..b74ac4b 100644
--- a/src/main/java/org/distorted/library/DistortedObjectTree.java
+++ b/src/main/java/org/distorted/library/DistortedObjectTree.java
@@ -26,11 +26,10 @@ import android.opengl.GLES20;
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 /**
- * Class which represents a Node in a Tree of DistortedObjects.
+ * Class which represents a Node in a Tree of (Texture,EffectQueue,Grid) set.
  *  
- * Having organized a set of DistortedObjects into a Tree, we can then render any Node to any Framebuffer.
- * That recursively renders the Object held in the Node and all its children, along with whatever effects
- * each one of them has. 
+ * Having organized such sets into a Tree, we can then render any Node to any Framebuffer.
+ * That recursively renders the set held in the Node and all its children.
  */
 public class DistortedObjectTree
   {
@@ -64,7 +63,7 @@ public class DistortedObjectTree
  
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-  static void release()
+  static synchronized void onDestroy()
     {
     mNextNodeID = 0;
     mMapNodeID.clear();
diff --git a/src/main/java/org/distorted/library/DistortedTexture.java b/src/main/java/org/distorted/library/DistortedTexture.java
index cfac734..4333d99 100644
--- a/src/main/java/org/distorted/library/DistortedTexture.java
+++ b/src/main/java/org/distorted/library/DistortedTexture.java
@@ -110,7 +110,7 @@ public class DistortedTexture
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-  static synchronized void release()
+  static synchronized void onDestroy()
     {
     mListMarked = false;
     mList.clear();
diff --git a/src/main/java/org/distorted/library/EffectQueue.java b/src/main/java/org/distorted/library/EffectQueue.java
index 0c932e4..00b47a3 100644
--- a/src/main/java/org/distorted/library/EffectQueue.java
+++ b/src/main/java/org/distorted/library/EffectQueue.java
@@ -50,7 +50,7 @@ abstract class EffectQueue
 
   static
     {
-    release();
+    onDestroy();
     }
   
 ///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -139,7 +139,7 @@ abstract class EffectQueue
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-  static void release()
+  static void onDestroy()
     {
     EffectTypes.reset(mMax);
     mCreated = false;  
diff --git a/src/main/java/org/distorted/library/EffectTypes.java b/src/main/java/org/distorted/library/EffectTypes.java
index 101c6a4..898d78f 100644
--- a/src/main/java/org/distorted/library/EffectTypes.java
+++ b/src/main/java/org/distorted/library/EffectTypes.java
@@ -58,9 +58,9 @@ public enum EffectTypes
 
   static void reset(int[] maxtable)
     {
-    maxtable[0] =10;  // By default, there can be a maximum 10 MATRIX effects acting on a single
-                      // DistortedObject at any given time. This can be changed with a call to
-                      // EffectQueueMatrix.setMax(int)
+    maxtable[0] =10;  // By default, there can be a maximum 10 MATRIX effects in a single
+                      // EffectQueueMatrix at any given time. This can be changed with a call
+                      // to EffectQueueMatrix.setMax(int)
 
     maxtable[1] = 5;  // Max 5 VERTEX Effects
     maxtable[2] = 5;  // Max 3 FRAGMENT Effects
