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/DistortedEffects.java
506 506

  
507 507
///////////////////////////////////////////////////////////////////////////////////////////////////
508 508

  
509
  static void onDestroy()
509
  static void onPause()
510 510
    {
511
    mNextID           =  0;
512 511
    mLinkedListSSBO[0]= -1;
513 512
    mAtomicCounter[0] = -1;
514 513
    }
515 514

  
515
///////////////////////////////////////////////////////////////////////////////////////////////////
516

  
517
  static void onDestroy()
518
    {
519
    mNextID =  0;
520
    }
521

  
516 522
///////////////////////////////////////////////////////////////////////////////////////////////////
517 523
// PUBLIC API
518 524
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff