commit a0700272e077e96b73806259b1c0ea36187bf6a4
Author: Leszek Koltunski <leszek@distoretedandroid.org>
Date:   Fri Dec 16 14:12:27 2016 +0000

    First attempt at the 'Mirror' app.

diff --git a/src/main/java/org/distorted/library/DistortedFramebuffer.java b/src/main/java/org/distorted/library/DistortedFramebuffer.java
index 50e6c85..e76495b 100644
--- a/src/main/java/org/distorted/library/DistortedFramebuffer.java
+++ b/src/main/java/org/distorted/library/DistortedFramebuffer.java
@@ -273,7 +273,8 @@ public class DistortedFramebuffer
  * <p>
  * Must be called from a thread holding OpenGL Context.
  *
- * @param fbo The Framebuffer whose COLOR attachment 0 will be used as input texture.
+ * @param fbo The Framebuffer (previously created with the first  constructor, drawing FROM the screen
+ *            is unsupported!) whose COLOR attachment 0 will be used as input texture.
  *            Please note that rendering from an FBO to itself is unsupported by OpenGL!
  * @param grid Class descendant from GridObject
  * @param effects The DistortedEffects to use when rendering
@@ -283,7 +284,7 @@ public class DistortedFramebuffer
     {
     fbo.createFBO();
 
-    if( fbo.texIds[0]>=0 )    // fbo created with the first constructor
+    if( fbo.texIds[0]>0 )    // fbo created with the first constructor
       {
       createFBO();
       GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, fboIds[0]);
@@ -292,17 +293,6 @@ public class DistortedFramebuffer
       DistortedFramebuffer.deleteAllMarked();
       DistortedTexture.deleteAllMarked();
       }
-    else                      // the second constructor
-      {
-      /*
-      createFBO();
-      GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, fboIds[0]);
-      // ??? TODO
-      effects.drawPriv(fbo.mWidth/2, fbo.mHeight/2, grid, this, time);
-      DistortedFramebuffer.deleteAllMarked();
-      DistortedTexture.deleteAllMarked();
-      */
-      }
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
