commit 0c827acc0a5ac7ca8244793f21dd8633f3fc6bc8
Author: Leszek Koltunski <leszek@distoretedandroid.org>
Date:   Tue Feb 7 16:17:54 2017 +0000

    Minor

diff --git a/src/main/java/org/distorted/library/DistortedTexture.java b/src/main/java/org/distorted/library/DistortedTexture.java
index f63d751..47c5570 100644
--- a/src/main/java/org/distorted/library/DistortedTexture.java
+++ b/src/main/java/org/distorted/library/DistortedTexture.java
@@ -53,7 +53,6 @@ public class DistortedTexture
 
   private Bitmap mBmp= null;
   private int[] mTextureDataH;
-  private boolean mBitmapSet;
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 // We have to flip vertically every single Bitmap that we get fed with.
@@ -114,7 +113,7 @@ public class DistortedTexture
       GLES30.glDeleteTextures(1, mTextureDataH, 0);
 
       mTextureDataH[0] = 0;
-      mBitmapSet= false;
+      mID              = 0;
       }
 
     mMarked = false;
@@ -131,7 +130,7 @@ public class DistortedTexture
 
   boolean setAsInput()
     {
-    if( mBitmapSet )
+    if( mID!=0 )
       {
       GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, mTextureDataH[0]);
       return true;
@@ -197,7 +196,6 @@ public class DistortedTexture
     mTextureDataH   = new int[1];
     mTextureDataH[0]= 0;
     mBmp            = null;
-    mBitmapSet      = false;
     mID             = 0;
     mMarked         = false;
 
@@ -228,9 +226,8 @@ public class DistortedTexture
 
   public void setTexture(Bitmap bmp)
     {
-    mBitmapSet = true;
-    mBmp       = bmp;
-    mID        = bmp.hashCode();
+    mBmp= bmp;
+    mID = bmp.hashCode();
 
     //android.util.Log.e("Texture", "setting new bitmap "+mID);
     }
