Project

General

Profile

« Previous | Next » 

Revision 11fb6ce0

Added by Leszek Koltunski over 7 years ago

Correct a bug with Postprocessing Shortcut.

View differences:

src/main/java/org/distorted/library/DistortedEffects.java
146 146
      }
147 147
    else
148 148
      {
149
      if( mV.mNumEffects>0 || mF.mNumEffects>0 )
149
      if( mV.mNumEffects==0 && mF.mNumEffects==0 && mesh.canUsePostprocessingShortcut() )
150
        {
151
        mM.constructMatrices(df,halfInputW,halfInputH);
152
        mP.render(2*halfInputW, 2*halfInputH, mM.getMVP(), df);
153
        }
154
      else
150 155
        {
151 156
        mProgram.useProgram();
152 157
        mBufferFBO.resizeFast(df.mWidth, df.mHeight);
......
168 173
        mBufferFBO.setAsInput();
169 174
        mP.render(df.mWidth, df.mHeight, mMVPMatrix, df);
170 175
        }
171
      else
172
        {
173
        mM.constructMatrices(df,halfInputW,halfInputH);
174
        mP.render(2*halfInputW, 2*halfInputH, mM.getMVP(), df);
175
        }
176 176
      }
177 177
    }
178 178

  

Also available in: Unified diff