35 lines
996 B
Java
35 lines
996 B
Java
package com.kofax.kmc.ken.engines.gpu.shaders;
|
|
|
|
import android.opengl.GLES20;
|
|
import com.kofax.kmc.ken.engines.gpu.OpenGLESContextManager;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public abstract class TwoPassShader extends Shader {
|
|
protected int _firstPassProgram;
|
|
protected int _secondPassProgram;
|
|
|
|
public abstract int getFirstPassProgram();
|
|
|
|
public abstract int getSecondPassProgram();
|
|
|
|
public TwoPassShader(OpenGLESContextManager openGLESContextManager) {
|
|
super(openGLESContextManager);
|
|
this._firstPassProgram = 0;
|
|
this._secondPassProgram = 0;
|
|
}
|
|
|
|
@Override // com.kofax.kmc.ken.engines.gpu.shaders.Shader
|
|
public void destroy() {
|
|
int i = this._firstPassProgram;
|
|
if (i != 0) {
|
|
GLES20.glDeleteProgram(i);
|
|
this._firstPassProgram = 0;
|
|
}
|
|
int i2 = this._secondPassProgram;
|
|
if (i2 != 0) {
|
|
GLES20.glDeleteProgram(i2);
|
|
this._secondPassProgram = 0;
|
|
}
|
|
}
|
|
}
|