commit fd836a416914dbbc0535ea5e550512041c2cd5e8
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Mon Jul 20 20:42:52 2020 +0100

    Fix the fact that the Normal and OIT programs would not work after a period of being paused.

diff --git a/src/main/java/org/distorted/library/main/DistortedLibrary.java b/src/main/java/org/distorted/library/main/DistortedLibrary.java
index fab5f9d..05f387a 100644
--- a/src/main/java/org/distorted/library/main/DistortedLibrary.java
+++ b/src/main/java/org/distorted/library/main/DistortedLibrary.java
@@ -678,7 +678,7 @@ public class DistortedLibrary
   private static void zeroBuffer()
     {
     ByteBuffer atomicBuf = (ByteBuffer)GLES30.glMapBufferRange( GLES31.GL_ATOMIC_COUNTER_BUFFER, 0, 4,
-        GLES30.GL_MAP_WRITE_BIT|GLES30.GL_MAP_INVALIDATE_BUFFER_BIT);
+                                                                GLES30.GL_MAP_WRITE_BIT|GLES30.GL_MAP_INVALIDATE_BUFFER_BIT);
     if( atomicBuf!=null )
       {
       IntBuffer atomicIntBuf = atomicBuf.order(ByteOrder.nativeOrder()).asIntBuffer();
@@ -1036,6 +1036,13 @@ public class DistortedLibrary
     Dynamic.onPause();
     mLinkedListSSBO[0]= -1;
     mAtomicCounter = null;
+
+    mFullProgram        = null;
+    mNormalProgram      = null;
+    mOITRenderProgram   = null;
+    mOITCollapseProgram = null;
+    mOITBuildProgram    = null;
+    mOITClearProgram    = null;
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
