what-the-bank/sources/com/kofax/kmc/ken/engines/gpu/shaders/SinglePassShader.java

26 lines
677 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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 SinglePassShader extends Shader {
protected int _program;
public abstract int getProgram();
public SinglePassShader(OpenGLESContextManager openGLESContextManager) {
super(openGLESContextManager);
this._program = 0;
}
@Override // com.kofax.kmc.ken.engines.gpu.shaders.Shader
public void destroy() {
int i = this._program;
if (i != 0) {
GLES20.glDeleteProgram(i);
this._program = 0;
}
}
}