commit 61ec82088bef15d1d8f071068dc5b4fda46c18cc
Author: Leszek Koltunski <leszek@distorted.org>
Date:   Mon Nov 14 23:42:55 2016 +0000

    Allow more than the default number of concurrent VERTEX and FRAGMENT effects in Effects3D.

diff --git a/src/main/java/org/distorted/library/Distorted.java b/src/main/java/org/distorted/library/Distorted.java
index 7f0f8e5..9d3f2f7 100644
--- a/src/main/java/org/distorted/library/Distorted.java
+++ b/src/main/java/org/distorted/library/Distorted.java
@@ -447,7 +447,14 @@ public class Distorted
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 /**
  * Sets the maximum number of Matrix effects that can be applied to a single DistortedObject at one time.
- * This can fail if the value of 'max' is outside permitted range. 
+ * This can fail if:
+ * <ul>
+ * <li>the value of 'max' is outside permitted range (0 &le; max &le; Byte.MAX_VALUE)
+ * <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 DistortedObject gets created.
+ * </ul>
  * 
  * @param max new maximum number of simultaneous Matrix Effects. Has to be a non-negative number not greater
  *            than Byte.MAX_VALUE 
@@ -463,10 +470,11 @@ public class Distorted
  * Sets the maximum number of Vertex effects that can be applied to a single DistortedObject at one time.
  * This can fail if:
  * <ul>
- * <li>the value of 'max' is outside permitted range
+ * <li>the value of 'max' is outside permitted range (0 &le; max &le; Byte.MAX_VALUE)
  * <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.  
+ *     time only decreasing the value of 'max' is permitted.
+* <li>Furthermore, this needs to be called before any DistortedObject gets created.
  * </ul>
  * 
  * @param max new maximum number of simultaneous Vertex Effects. Has to be a non-negative number not greater
@@ -483,10 +491,11 @@ public class Distorted
  * Sets the maximum number of Fragment effects that can be applied to a single DistortedObject at one time.
  * This can fail if:
  * <ul>
- * <li>the value of 'max' is outside permitted range
+ * <li>the value of 'max' is outside permitted range (0 &le; max &le; Byte.MAX_VALUE)
  * <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.  
+ *     time only decreasing the value of 'max' is permitted.
+ * <li>Furthermore, this needs to be called before any DistortedObject gets created.
  * </ul>
  * 
  * @param max new maximum number of simultaneous Fragment Effects. Has to be a non-negative number not greater
