Project

General

Profile

« Previous | Next » 

Revision 341151fc

Added by Leszek Koltunski about 6 years ago

Fixes ported from the 'OIT' branch:

- remove counting of transparent pixels
- various fixes for the Mali GPU

View differences:

src/main/java/org/distorted/library/main/DistortedEffects.java
53 53
  /// MAIN PROGRAM ///
54 54
  private static DistortedProgram mMainProgram;
55 55
  private static int mMainTextureH;
56
  private static int mCountIndexH;
57 56

  
58 57
  /// BLIT PROGRAM ///
59 58
  private static DistortedProgram mBlitProgram;
......
122 121
    EffectQueueVertex.getUniforms(mainProgramH);
123 122
    EffectQueueMatrix.getUniforms(mainProgramH);
124 123
    mMainTextureH= GLES31.glGetUniformLocation( mainProgramH, "u_Texture");
125
    mCountIndexH = GLES31.glGetUniformLocation( mainProgramH, "u_currentIndex");
126 124

  
127 125
    // BLIT PROGRAM ////////////////////////////////////
128 126
    final InputStream blitVertStream = resources.openRawResource(R.raw.blit_vertex_shader);
......
285 283

  
286 284
    mMainProgram.useProgram();
287 285
    GLES31.glUniform1i(mMainTextureH, 0);
288
    GLES31.glUniform1i(mCountIndexH, surface.getNewCounter() );
289 286

  
290 287
    if( Distorted.GLSL >= 300 )
291 288
      {

Also available in: Unified diff