Revision e02264ff
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/EffectQueuePostprocess.java | ||
---|---|---|
174 | 174 |
if( currTime==mTime ) return false; |
175 | 175 |
if( mTime==0 ) mTime = currTime; |
176 | 176 |
long step = (currTime-mTime); |
177 |
|
|
177 |
|
|
178 | 178 |
for(int i=0; i<mNumEffects; i++) |
179 | 179 |
{ |
180 | 180 |
mCurrentDuration[i] += step; |
... | ... | |
197 | 197 |
else mInter[0][i] = null; |
198 | 198 |
} |
199 | 199 |
} |
200 |
|
|
200 |
|
|
201 | 201 |
mTime = currTime; |
202 | 202 |
|
203 | 203 |
return true; |
... | ... | |
264 | 264 |
|
265 | 265 |
int postprocess(long time, DistortedOutputSurface surface) |
266 | 266 |
{ |
267 |
if( mNumEffects>0 && compute(time) )
|
|
267 |
if( mNumEffects>0 ) |
|
268 | 268 |
{ |
269 |
compute(time); |
|
270 |
|
|
269 | 271 |
surface.mBuffer1.setAsInput(); |
270 | 272 |
float w = surface.mWidth; |
271 | 273 |
float h = surface.mHeight; |
Also available in: Unified diff
Bugfix (before we couldn't call postprocess() more than once per frame)