Revision fb001aff
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/library/main/DistortedEffects.java | ||
---|---|---|
181 | 181 |
return mQueues[num].add(effect,position); |
182 | 182 |
} |
183 | 183 |
|
184 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
185 |
/** |
|
186 |
* Mark the underlying OpenGL object for deletion. Actual deletion will take place on the next render. |
|
187 |
*/ |
|
188 |
public void markForDeletion() |
|
189 |
{ |
|
190 |
for( int i=0; i<EffectType.LENGTH; i++) |
|
191 |
{ |
|
192 |
mQueues[i].markForDeletion(); |
|
193 |
} |
|
194 |
} |
|
195 |
|
|
184 | 196 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
185 | 197 |
/** |
186 | 198 |
* Return number of effects of the given type currently in the Queue. |
Also available in: Unified diff
Plug two more memory leaks. It should be fine now.