Project

General

Profile

« Previous | Next » 

Revision 586b5fa1

Added by Leszek Koltunski almost 6 years ago

Port another commit from master.

I spoke too soon, the ARM Mali flashing is of course not fixed yet. The previous commit fixed Triblur, but the bug is still reproducible elsewhere (only in the 'postprocessed' apps though).

This commit introduces a circular queue in case of the postprocessing FBOs - with little success though.

View differences:

src/main/java/org/distorted/library/main/DistortedScreen.java
56 56
  ///// END DEBUGGING //////////////////////////
57 57

  
58 58
  private int mCurrFBO;
59
  private static final int NUM_FBO = 3;
60 59

  
61 60
///////////////////////////////////////////////////////////////////////////////////////////////////
62 61
// PUBLIC API
......
68 67
 */
69 68
  public DistortedScreen()
70 69
    {
71
    super(NUM_FBO,1,BOTH_DEPTH_STENCIL, TYPE_SYST, 1,1);
70
    super(Distorted.FBO_QUEUE_SIZE,1,BOTH_DEPTH_STENCIL, TYPE_SYST, 1,1);
72 71
    mShowFPS = false;
73 72
    mCurrFBO = 0;
74 73
    }
......
122 121
      }
123 122

  
124 123
    mCurrFBO++;
125
    if( mCurrFBO>=NUM_FBO ) mCurrFBO=0;
124
    if( mCurrFBO>=Distorted.FBO_QUEUE_SIZE ) mCurrFBO=0;
126 125

  
127 126
    return numrender+1;
128 127
    }

Also available in: Unified diff