commit ab12f06b377bd2558bc2ce935a64736f0297e96a
Author: Leszek Koltunski <leszek@distorted.org>
Date:   Thu Dec 15 23:59:57 2016 +0000

    Some more minor fixes.

diff --git a/src/main/java/org/distorted/library/Distorted.java b/src/main/java/org/distorted/library/Distorted.java
index c145de2..26a950c 100644
--- a/src/main/java/org/distorted/library/Distorted.java
+++ b/src/main/java/org/distorted/library/Distorted.java
@@ -280,8 +280,7 @@ public class Distorted
  * When OpenGL context gets created, you need to call this method so that the library can initialise its internal data structures.
  * I.e. best called from GLSurfaceView.onSurfaceCreated().
  * <p>
- * Compiles the vertex and fragment shaders, establishes the addresses of all uniforms, and initialises all Bitmaps that have already
- * been created.
+ * Compiles the vertex and fragment shaders, establishes the addresses of all uniforms.
  *   
  * @param context Context of the App using the library - used to open up Resources and read Shader code.
  * @throws FragmentCompilationException
@@ -392,7 +391,7 @@ public class Distorted
  * <li>We try to increase the value of 'max' when it is too late to do so already. It needs to be called
  *     before the Vertex Shader gets compiled, i.e. before the call to {@link #onSurfaceCreated}. After this
  *     time only decreasing the value of 'max' is permitted.
- * <li>Furthermore, this needs to be called before any DistortedEffects gets created.
+ * <li>Furthermore, this needs to be called before any instances of the DistortedEffects class get created.
  * </ul>
  * 
  * @param max new maximum number of simultaneous Matrix Effects. Has to be a non-negative number not greater
@@ -413,7 +412,7 @@ public class Distorted
  * <li>We try to increase the value of 'max' when it is too late to do so already. It needs to be called 
  *     before the Vertex Shader gets compiled, i.e. before the call to {@link #onSurfaceCreated}. After this
  *     time only decreasing the value of 'max' is permitted.
-* <li>Furthermore, this needs to be called before any DistortedEffects get created.
+* <li>Furthermore, this needs to be called before any instances of the DistortedEffects class get created.
  * </ul>
  * 
  * @param max new maximum number of simultaneous Vertex Effects. Has to be a non-negative number not greater
@@ -434,7 +433,7 @@ public class Distorted
  * <li>We try to increase the value of 'max' when it is too late to do so already. It needs to be called 
  *     before the Fragment Shader gets compiled, i.e. before the call to {@link #onSurfaceCreated}. After this
  *     time only decreasing the value of 'max' is permitted.
- * <li>Furthermore, this needs to be called before any DistortedEffects get created.
+ * <li>Furthermore, this needs to be called before any instances of the DistortedEffects class get created.
  * </ul>
  * 
  * @param max new maximum number of simultaneous Fragment Effects. Has to be a non-negative number not greater
diff --git a/src/main/java/org/distorted/library/DistortedFramebuffer.java b/src/main/java/org/distorted/library/DistortedFramebuffer.java
index c568f8f..f9b3883 100644
--- a/src/main/java/org/distorted/library/DistortedFramebuffer.java
+++ b/src/main/java/org/distorted/library/DistortedFramebuffer.java
@@ -387,8 +387,8 @@ public class DistortedFramebuffer
  * that the texture gets created only on first render, thus creating a Texture object and immediately
  * calling this method will return an invalid (negative) result.
  *
- * @returns If there was not a single render between creation of the Object and calling this method on
- *          it, return a negative value. Otherwise, return ID of COLOR attachment 0.
+ * @return If there was not a single render between creation of the Object and calling this method on
+ *         it, return a negative value. Otherwise, return ID of COLOR attachment 0.
  */
   public int getTextureID()
     {
diff --git a/src/main/java/org/distorted/library/DistortedTree.java b/src/main/java/org/distorted/library/DistortedTree.java
index 9e0b15f..752a26d 100644
--- a/src/main/java/org/distorted/library/DistortedTree.java
+++ b/src/main/java/org/distorted/library/DistortedTree.java
@@ -170,7 +170,7 @@ public class DistortedTree
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 // Debug - print all the Node IDs
-
+/*
   void debug(int depth)
     {
     String tmp="";
@@ -199,7 +199,7 @@ public class DistortedTree
       android.util.Log.e("NODE", "key="+key+" NodeID: "+tmp.ID);
       }
     }
-
+*/
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
   void drawRecursive(long currTime, DistortedFramebuffer df)
diff --git a/src/main/java/org/distorted/library/EffectQueueMatrix.java b/src/main/java/org/distorted/library/EffectQueueMatrix.java
index 542153f..b6ab54e 100644
--- a/src/main/java/org/distorted/library/EffectQueueMatrix.java
+++ b/src/main/java/org/distorted/library/EffectQueueMatrix.java
@@ -85,7 +85,23 @@ class EffectQueueMatrix extends EffectQueue
     mTmpMatrix[15] = 1;
     
     Matrix.multiplyMM(mMVPMatrix, 0, matrix, 0, mTmpMatrix, 0);  
-    for(int j=0; j<16; j++) matrix[j] = mMVPMatrix[j];   
+
+    matrix[ 0] = mMVPMatrix[ 0];
+    matrix[ 1] = mMVPMatrix[ 1];
+    matrix[ 2] = mMVPMatrix[ 2];
+    matrix[ 3] = mMVPMatrix[ 3];
+    matrix[ 4] = mMVPMatrix[ 4];
+    matrix[ 5] = mMVPMatrix[ 5];
+    matrix[ 6] = mMVPMatrix[ 6];
+    matrix[ 7] = mMVPMatrix[ 7];
+    matrix[ 8] = mMVPMatrix[ 8];
+    matrix[ 9] = mMVPMatrix[ 9];
+    matrix[10] = mMVPMatrix[10];
+    matrix[11] = mMVPMatrix[11];
+    matrix[12] = mMVPMatrix[12];
+    matrix[13] = mMVPMatrix[13];
+    matrix[14] = mMVPMatrix[14];
+    matrix[15] = mMVPMatrix[15];
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
