Project

General

Profile

« Previous | Next » 

Revision 8dccc3c2

Added by Leszek Koltunski about 6 years ago

Disable blending during postprocessing.

View differences:

src/main/java/org/distorted/library/main/EffectQueuePostprocess.java
19 19

  
20 20
package org.distorted.library.main;
21 21

  
22
import android.opengl.GLES31;
23

  
22 24
import org.distorted.library.effect.EffectType;
23 25
import org.distorted.library.effect.PostprocessEffect;
24 26
import org.distorted.library.message.EffectMessage;
......
103 105
    {
104 106
    int numRenders = 0;
105 107

  
108
    GLES31.glDisable(GLES31.GL_BLEND);
109

  
106 110
    for(int i=0; i<mNumEffects; i++)
107 111
      {
108 112
      numRenders += ((PostprocessEffect)mEffects[i]).apply(mUniforms,NUM_UNIFORMS*i, buffers);
109 113
      }
110 114

  
115
    GLES31.glEnable(GLES31.GL_BLEND);
116

  
111 117
    return numRenders;
112 118
    }
113 119
  }

Also available in: Unified diff