Project

General

Profile

« Previous | Next » 

Revision 1f19fba8

Added by Leszek Koltunski almost 6 years ago

Port the Mali flash fix to the OIT branch.

View differences:

src/main/java/org/distorted/library/main/Distorted.java
28 28
import org.distorted.library.effect.FragmentEffect;
29 29
import org.distorted.library.effect.PostprocessEffect;
30 30
import org.distorted.library.effect.VertexEffect;
31
import org.distorted.library.program.*;
32 31

  
33 32
///////////////////////////////////////////////////////////////////////////////////////////////////
34 33
/**
......
87 86
   *
88 87
   * https://community.arm.com/graphics/f/discussions/10285/opengl-es-3-1-on-mali-t880-flashes
89 88
   */
90
  public static final int FBO_QUEUE_SIZE = 3;
89
  public static final int FBO_QUEUE_SIZE = 4;
91 90

  
92 91
  private static boolean mInitialized=false;
93 92

  
......
117 116
 * Needs to be called from a thread holding the OpenGL context.
118 117
 *   
119 118
 * @param context Context of the App using the library - used to open up Resources and read Shader code.
120
 * @throws FragmentCompilationException Fragment Shader failed to compile
121
 * @throws VertexCompilationException   Vertex Shader failed to compile
122
 * @throws VertexUniformsException      Too many uniforms in the Vertex Shader
123
 * @throws FragmentUniformsException    Too many uniforms in the Fragment Shader
124
 * @throws LinkingException             Shader failed to link
125 119
 */
126 120
  public static void onCreate(final Context context)
127
  throws FragmentCompilationException,VertexCompilationException,VertexUniformsException,FragmentUniformsException,LinkingException
128 121
    {
129 122
    final ActivityManager activityManager     = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
130 123
    final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo();

Also available in: Unified diff