Project

General

Profile

« Previous | Next » 

Revision 35991860

Added by Leszek Koltunski almost 7 years ago

Fix Stencil in Postprocessing with lower than HIGHEST quality: now any quality works.

View differences:

src/main/java/org/distorted/library/DistortedOutputSurface.java
194 194
            mBuffer1[j] = new DistortedFramebuffer(BOTH_DEPTH_STENCIL,TYPE_SYST, (int)(mWidth*mipmap), (int)(mHeight*mipmap) );
195 195
            mBuffer2[j] = new DistortedFramebuffer(BOTH_DEPTH_STENCIL,TYPE_SYST, (int)(mWidth*mipmap), (int)(mHeight*mipmap) );
196 196
            mBuffer1[j].mMipmap = mipmap;
197
            mBuffer2[j].mMipmap = mipmap;
197 198
            mipmap *= EffectQuality.MULTIPLIER;
198 199
            }
199 200
          DistortedObject.toDo(); // create the FBOs immediately. This is safe as we must be holding the OpenGL context now.
200 201
          }
201 202

  
202
        numRenders += child.markStencilAndDraw(time,this,currP.getQuality(),50);
203
        int quality = currP.getQuality();
204
        numRenders += child.markStencilAndDraw(time,this,quality,50*mBuffer1[quality].mMipmap);
203 205

  
204 206
        if( i==num-1 )
205 207
          {

Also available in: Unified diff