Project

General

Profile

« Previous | Next » 

Revision 3f44e745

Added by Leszek Koltunski over 7 years ago

Bugfix in renderChildren again :)

View differences:

src/main/java/org/distorted/library/DistortedOutputSurface.java
234 234
  int renderChildren(long time, int num, ArrayList<DistortedNode> children)
235 235
    {
236 236
    int numRenders = 0;
237
    DistortedNode child;
237
    DistortedNode child1, child2;
238 238
    DistortedEffectsPostprocess lastP=null, currP;
239 239
    long lastB=0, currB;
240 240
    int bucketChange=0;
......
242 242

  
243 243
    for(int i=0; i<num; i++)
244 244
      {
245
      child = children.get(i);
246
      currP = child.getEffectsPostprocess();
245
      child1 = children.get(i);
246
      currP = child1.getEffectsPostprocess();
247 247
      currB = currP==null ? 0 : currP.getBucket();
248 248
      currQ = currP==null ? 0 : currP.getQuality();
249 249

  
250
      if( currB==0 ) numRenders += child.draw(time,this);
250
      if( currB==0 ) numRenders += child1.draw(time,this);
251 251
      else
252 252
        {
253 253
        if( mBuffer[0]==null ) createBuffers();
......
258 258
            {
259 259
            for(int j=bucketChange; j<i; j++)
260 260
              {
261
              child = children.get(j);
262
              numRenders += child.markStencilAndDepth(time,mBuffer[lastQ],lastP);
261
              child2 = children.get(j);
262
              numRenders += child2.markStencilAndDepth(time,mBuffer[lastQ],lastP);
263 263
              }
264 264

  
265 265
            numRenders += lastP.postprocess(time, this);
......
269 269
          bucketChange = i;
270 270
          }
271 271

  
272
        numRenders += child.draw(time,mBuffer[currQ]);
272
        numRenders += child1.draw(time,mBuffer[currQ]);
273 273

  
274 274
        if( i==num-1 )
275 275
          {
276 276
          for(int j=bucketChange; j<num; j++)
277 277
            {
278
            child = children.get(j);
279
            numRenders += child.markStencilAndDepth(time,mBuffer[currQ],currP);
278
            child2 = children.get(j);
279
            numRenders += child2.markStencilAndDepth(time,mBuffer[currQ],currP);
280 280
            }
281 281

  
282 282
          numRenders += currP.postprocess(time,this);

Also available in: Unified diff