Project

General

Profile

« Previous | Next » 

Revision 43814a57

Added by Leszek Koltunski over 3 years ago

Fix the fact that the static DistortedEffects.mAllQueues was global, shared between all Activities.
Completely replace this mechanism with a non-static list of links from a VertexEffect to all VertexEffectQueues this effect is a member of.

View differences:

src/main/java/org/distorted/library/effect/PostprocessEffect.java
19 19

  
20 20
package org.distorted.library.effect;
21 21

  
22
import org.distorted.library.effectqueue.EffectQueue;
22 23
import org.distorted.library.main.DistortedFramebuffer;
23 24
import org.distorted.library.main.InternalMaster;
24 25
import org.distorted.library.program.DistortedProgram;
......
165 166
    return mQualityLevel;
166 167
    }
167 168

  
169
///////////////////////////////////////////////////////////////////////////////////////////////////
170
/**
171
 * Only for use by the library itself.
172
 *
173
 * @y.exclude
174
 */
175
  public void addQueue(EffectQueue queue)
176
    {
177
    // NO OP
178
    }
179

  
180
///////////////////////////////////////////////////////////////////////////////////////////////////
181
/**
182
 * Only for use by the library itself.
183
 *
184
 * @y.exclude
185
 */
186
  public void remQueue(EffectQueue queue)
187
    {
188
    // NO OP
189
    }
190

  
168 191
///////////////////////////////////////////////////////////////////////////////////////////////////
169 192
/**
170 193
 * This is not really part of the public API. Has to be public only because it is a part of the

Also available in: Unified diff