Project

General

Profile

« Previous | Next » 

Revision 2b7d2abb

Added by Leszek Koltunski over 3 years ago

Remove UBO from the fragment shader and come back to the default of only 5 concurrent fragment effects. All because UBOs in fragment shader crash on Adreno 510 and Adreno 506.

View differences:

src/main/java/org/distorted/library/effectqueue/EffectQueueMatrix.java
32 32
  {
33 33
  private static final int NUM_FLOAT_UNIFORMS = MatrixEffect.NUM_FLOAT_UNIFORMS;
34 34
  private static final int NUM_INT_UNIFORMS   = MatrixEffect.NUM_INT_UNIFORMS;
35

  
35
  private static final boolean USE_UBO        = false;
36 36
  private static final int INDEX = EffectType.MATRIX.ordinal();
37 37

  
38 38
  private static final float[] mMVPMatrix       = new float[16];
......
47 47
   
48 48
  EffectQueueMatrix()
49 49
    { 
50
    super(NUM_FLOAT_UNIFORMS, NUM_INT_UNIFORMS, INDEX);
50
    super(NUM_FLOAT_UNIFORMS, NUM_INT_UNIFORMS, USE_UBO, INDEX);
51 51
    }
52 52

  
53 53
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff