commit 0c8e26ea7a79135fd2431a07f105c4a76797b2a4
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Tue Dec 1 23:46:35 2020 +0100

    Bugfix: we initially need to set the maxTextureSize to MAX_INT, because otherwise early (i.e. before a call to onSurfaceCreated) calls to setTexture() will fail.

diff --git a/src/main/java/org/distorted/library/main/DistortedLibrary.java b/src/main/java/org/distorted/library/main/DistortedLibrary.java
index 97d9a6f..ff9bcea 100644
--- a/src/main/java/org/distorted/library/main/DistortedLibrary.java
+++ b/src/main/java/org/distorted/library/main/DistortedLibrary.java
@@ -116,7 +116,7 @@ public class DistortedLibrary
   private static int mGLSL;
   private static String mGLSL_VERSION;
   private static boolean mOITCompilationAttempted;
-  private static int mMaxTextureSize;
+  private static int mMaxTextureSize = Integer.MAX_VALUE;
 
   //////////////////////////////////////////////////////////////////////////////////////////////
   /// MAIN PROGRAM ///
