Project

General

Profile

« Previous | Next » 

Revision 048bc7f4

Added by Leszek Koltunski almost 7 years ago

Correct a bug where postprocessed objects would not re-appear after the app went briefly to the background.

View differences:

src/main/java/org/distorted/library/EffectQueuePostprocess.java
333 333
      GLES30.glClearStencil(0);
334 334

  
335 335
      buffer1.setAsOutput();
336
      GLES30.glClear(GLES30.GL_COLOR_BUFFER_BIT|GLES30.GL_DEPTH_BUFFER_BIT);//|GLES30.GL_STENCIL_BUFFER_BIT);
336
      GLES30.glClear(GLES30.GL_COLOR_BUFFER_BIT|GLES30.GL_DEPTH_BUFFER_BIT|GLES30.GL_STENCIL_BUFFER_BIT);
337 337
      buffer2.setAsOutput();
338
      GLES30.glClear(GLES30.GL_COLOR_BUFFER_BIT);
338
      GLES30.glClear(GLES30.GL_COLOR_BUFFER_BIT|GLES30.GL_DEPTH_BUFFER_BIT);
339 339
      }
340 340

  
341 341
    return mNumEffects;

Also available in: Unified diff