Revision 2f1f7570
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/library/effect/Effect.java | ||
---|---|---|
59 | 59 |
|
60 | 60 |
int n = name.ordinal(); |
61 | 61 |
float[] u = name.getUnity(); |
62 |
int l = name.getUnity().length;
|
|
62 |
int l = u.length;
|
|
63 | 63 |
|
64 | 64 |
for(int i=0; i<l; i++) |
65 | 65 |
{ |
... | ... | |
82 | 82 |
mNextID = 0; |
83 | 83 |
|
84 | 84 |
for(int i=0; i<NUM_EFFECTS; i++) mEnabled[i] = false; |
85 |
|
|
86 |
MatrixEffect.destroyStatics(); |
|
87 |
VertexEffect.destroyStatics(); |
|
88 |
PostprocessEffect.destroyStatics(); |
|
85 | 89 |
} |
86 | 90 |
|
87 | 91 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Properly clean up static varaibles in the Effect classes!