Project

General

Profile

« Previous | Next » 

Revision 2ef5dd9e

Added by Leszek Koltunski almost 7 years ago

Bugfixes for the recent 'Effect classes' API change.

View differences:

src/main/java/org/distorted/library/main/DistortedEffects.java
478 478
    {
479 479
    long type = id&EffectType.MASK;
480 480

  
481
    if( type == EffectType.MATRIX.ordinal()      ) return mM.abortAll(true);
482
    if( type == EffectType.VERTEX.ordinal()      ) return mV.abortAll(true);
483
    if( type == EffectType.FRAGMENT.ordinal()    ) return mF.abortAll(true);
484
//  if( type == EffectType.POSTPROCESS.ordinal() ) return mP.abortAll(true);
481
    if( type == EffectType.MATRIX.ordinal()      ) return mM.removeById(id);
482
    if( type == EffectType.VERTEX.ordinal()      ) return mV.removeById(id);
483
    if( type == EffectType.FRAGMENT.ordinal()    ) return mF.removeById(id);
484
//  if( type == EffectType.POSTPROCESS.ordinal() ) return mP.removeById(id);
485 485

  
486 486
    return 0;
487 487
    }

Also available in: Unified diff