Project

General

Profile

« Previous | Next » 

Revision ef02f5e0

Added by Leszek Koltunski about 3 years ago

Bugfixes as a result of the Samsung Galaxy J4+ investigation:

1) By default, switch off transform feedback in the main program.
Create a new API 'needTransformFeedback()' to call if someone still needs TF in the main program.
2) lower the default max number of vertex effects to 30.
3) lower the default max number of Components of a Mesh to 100.

View differences:

src/main/java/org/distorted/examples/predeform/PredeformRenderer.java
48 48
    private static final float FOV = 30.0f;
49 49
    private static final float NEAR = 0.1f;
50 50

  
51
    private GLSurfaceView mView;
52
    private DistortedTexture mTexture;
53
    private DistortedEffects mEffects1, mEffects2;
54
    private MeshBase mMesh1, mMesh2;
55
    private DistortedScreen mScreen;
56
    private Static3D mScale, mMove1, mMove2;
51
    private final GLSurfaceView mView;
52
    private final DistortedTexture mTexture;
53
    private final DistortedEffects mEffects1, mEffects2;
54
    private final MeshBase mMesh1, mMesh2;
55
    private final DistortedScreen mScreen;
56
    private final Static3D mScale, mMove1, mMove2;
57 57

  
58 58
    Static4D mQuat1, mQuat2;
59 59
    int mScreenMin;
......
180 180

  
181 181
      Effect.enableEffects(EffectType.VERTEX);
182 182

  
183
      DistortedLibrary.needTransformFeedback();
183 184
      DistortedLibrary.onSurfaceCreated(act, this);
184 185
      }
185 186

  

Also available in: Unified diff