Project

General

Profile

« Previous | Next » 

Revision 9362a929

Added by Leszek Koltunski over 7 years ago

Still small improvement to FPS

View differences:

src/main/java/org/distorted/library/DistortedScreen.java
27 27
import android.graphics.Bitmap;
28 28
import android.graphics.Canvas;
29 29
import android.graphics.Paint;
30
import android.opengl.GLES30;
30 31
import android.opengl.GLSurfaceView;
31 32

  
32 33
import org.distorted.library.type.Static3D;
......
89 90
    if (fpsTexture.setAsInput())
90 91
      {
91 92
      setAsOutput(time);
93
      GLES30.glColorMask(true,true,true,true);
94
      GLES30.glDepthMask(false);
95
      GLES30.glDisable(GLES30.GL_STENCIL_TEST);
96
      GLES30.glDisable(GLES30.GL_DEPTH_TEST);
92 97
      fpsEffects.drawPriv(fpsW/2.0f, fpsH/2.0f, fpsMesh, this, time, 0);
93 98
      }
94 99
    }

Also available in: Unified diff