Project

General

Profile

« Previous | Next » 

Revision 78e89fb5

Added by Leszek Koltunski about 6 years ago

Properly recreate the Atomic and LinkedList buffers onPause.
We have to discard all alpha==0.0 pixels during OIT Pass1.

View differences:

src/main/java/org/distorted/library/main/Distorted.java
133 133

  
134 134
///////////////////////////////////////////////////////////////////////////////////////////////////
135 135
/**
136
 * Call this so that the Library can release its internal data structures.
136
 * Call this so that the Library can release the OpenGL related data that needs to be recreated.
137 137
 * Must be called from Activity.onPause().
138 138
 */
139 139
  public static void onPause()
140 140
    {
141 141
    DistortedObject.onPause();
142 142
    DistortedNode.onPause();
143
    DistortedEffects.onPause();
143 144
    }
144 145

  
145 146
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff