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/generic/GenericRenderer.java
54 54
    private static final float FOV = 30.0f;
55 55
    private static final float NEAR = 0.1f;
56 56

  
57
    private GLSurfaceView mView;
58
    private DistortedTexture mObjectTexture, mBackgroundTexture, mCenterTexture, mRegionTexture;
59
    private DistortedEffects mObjectEffects;
60
    private DistortedScreen mScreen;
61
    private DistortedNode mCenterNode, mRegionNode;
62
    private float mObjWidth, mObjHeight, mObjDepth;
63
    private Static3D mCenterPoint, mRegionPoint, mScaleRegion;
64
    private Static3D mMoveObject, mScaleObject, mScaleCenter, mMoveBackground, mScaleBackground;
57
    private final GLSurfaceView mView;
58
    private final DistortedTexture mObjectTexture, mBackgroundTexture, mCenterTexture, mRegionTexture;
59
    private final DistortedEffects mObjectEffects;
60
    private final DistortedScreen mScreen;
61
    private final DistortedNode mCenterNode, mRegionNode;
62
    private final Static3D mCenterPoint, mRegionPoint, mScaleRegion;
63
    private final Static3D mMoveObject, mScaleObject, mScaleCenter, mMoveBackground, mScaleBackground;
64
    private final float mObjWidth, mObjHeight, mObjDepth, mFactor;
65

  
65 66
    private boolean mShowingCenter=false;
66 67
    private boolean mShowingRegion=false;
67 68
    private float mFactorObj;
68 69
    private int mWidth;
69
    private float mFactor;
70 70

  
71 71
    Static4D mQuat1, mQuat2;
72 72
    int mScreenMin;
......
319 319
      Effect.enableEffects(EffectType.FRAGMENT);
320 320
      Effect.enableEffects(EffectType.POSTPROCESS);
321 321

  
322
      DistortedLibrary.needTransformFeedback();
322 323
      DistortedLibrary.onSurfaceCreated(mView.getContext(), this);
323 324
      }
324 325

  

Also available in: Unified diff