Project

General

Profile

« Previous | Next » 

Revision 0c303a2c

Added by Leszek Koltunski about 7 years ago

Release all TREE FBOs in Distorted.onPause().

View differences:

src/main/java/org/distorted/library/DistortedOutputSurface.java
173 173
        {
174 174
        if( mBuffer1==null )
175 175
          {
176
          mBuffer1 = new DistortedFramebuffer(mDepthCreated!=DONT_CREATE, DistortedSurface.TYPE_TREE, mWidth, mHeight);
177
          mBuffer2 = new DistortedFramebuffer(false                     , DistortedSurface.TYPE_TREE, mWidth, mHeight);
176
          mBuffer1 = new DistortedFramebuffer(mDepthCreated!=DONT_CREATE, DistortedSurface.TYPE_SYST, mWidth, mHeight);
177
          mBuffer2 = new DistortedFramebuffer(false                     , DistortedSurface.TYPE_SYST, mWidth, mHeight);
178 178
          }
179 179

  
180 180
        numRenders += child.draw(time,mBuffer1);

Also available in: Unified diff