Project

General

Profile

« Previous | Next » 

Revision cdd5e827

Added by Leszek Koltunski over 7 years ago

Some fixes for issues discovered by the Multiblur app.

View differences:

src/main/java/org/distorted/library/EffectQueuePostprocess.java
69 69
    mQuadTextureInv.put(textureInv).position(0);
70 70
    }
71 71

  
72
  private static DistortedFramebuffer mBufferFBO = new DistortedFramebuffer(1,1);
72
  private static DistortedFramebuffer mBufferFBO = new DistortedFramebuffer(1,1,true);
73

  
73 74
  private static float[] mMVPMatrix = new float[16];
74 75
  private static float[] mTmpMatrix = new float[16];
75 76

  
......
246 247

  
247 248
    mBufferFBO.resizeFast( (int)w, (int)h);
248 249
    mBufferFBO.setAsOutput();
250
    GLES30.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
251
    GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
249 252
    GLES30.glViewport(0, 0, (int)w, (int)h);
250 253

  
251 254
    Matrix.setIdentityM(mTmpMatrix, 0);

Also available in: Unified diff