Project

General

Profile

« Previous | Next » 

Revision 0273ef2a

Added by Leszek Koltunski almost 4 years ago

Fixes for pausing and restarting.

View differences:

src/main/java/org/distorted/library/effectqueue/EffectQueueFragment.java
69 69

  
70 70
    for(int i=0; i<mNumEffects; i++)
71 71
      {
72
      mCurrentDuration[i] += step;
73

  
74
      if( mEffects[i].compute(mUniforms, NUM_UNIFORMS*i, mCurrentDuration[i], step) )
72
      if( mEffects[i].compute(mUniforms, NUM_UNIFORMS*i, currTime, step) )
75 73
        {
76 74
        EffectMessageSender.newMessage(mEffects[i]);
77 75
        }

Also available in: Unified diff