Project

General

Profile

« Previous | Next » 

Revision c92d84ec

Added by Leszek Koltunski about 6 years ago

minor.

View differences:

src/main/java/org/distorted/library/main/DistortedEffects.java
398 398
      {
399 399
      IntBuffer atomicIntBuf = atomicBuf.order(ByteOrder.nativeOrder()).asIntBuffer();
400 400

  
401
      int counter = atomicIntBuf.get(0);
402
      atomicIntBuf.put(0, 0);
401
      //int counter = atomicIntBuf.get(0);
403 402
      //android.util.Log.e("counter", "now = "+counter+" w="+surface.mWidth+" h="+surface.mHeight
404 403
      //                             +" diff="+(counter-surface.mWidth*surface.mHeight));
404
      atomicIntBuf.put(0,0);
405 405
      }
406 406
    else
407 407
      {
408
      android.util.Log.e("counter", "failed to map buffer");
408
      android.util.Log.e("effects", "failed to map atomic buffer");
409 409
      }
410 410

  
411 411
    GLES31.glUnmapBuffer(GLES31.GL_ATOMIC_COUNTER_BUFFER);

Also available in: Unified diff