41 lines
1.6 KiB
Java
41 lines
1.6 KiB
Java
package c.o.b.f;
|
|
|
|
import android.opengl.GLES20;
|
|
import c.o.b.a.d;
|
|
import c.o.b.c.f;
|
|
import d0.p;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: GlTexture.kt */
|
|
public final class a extends o implements Function0<Unit> {
|
|
public final /* synthetic */ Integer $internalFormat;
|
|
public final /* synthetic */ b this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public a(b bVar, Integer num) {
|
|
super(0);
|
|
this.this$0 = bVar;
|
|
this.$internalFormat = num;
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public Unit mo1invoke() {
|
|
b bVar = this.this$0;
|
|
if (!(bVar.d == null || bVar.e == null || bVar.f == null || this.$internalFormat == null || bVar.g == null)) {
|
|
GLES20.glTexImage2D(p.m86constructorimpl(bVar.f1518c), 0, this.$internalFormat.intValue(), this.this$0.d.intValue(), this.this$0.e.intValue(), 0, p.m86constructorimpl(this.this$0.f.intValue()), p.m86constructorimpl(this.this$0.g.intValue()), null);
|
|
}
|
|
GLES20.glTexParameterf(p.m86constructorimpl(this.this$0.f1518c), f.e, f.j);
|
|
GLES20.glTexParameterf(p.m86constructorimpl(this.this$0.f1518c), f.f, f.k);
|
|
int r0 = p.m86constructorimpl(this.this$0.f1518c);
|
|
int i = f.g;
|
|
int i2 = f.i;
|
|
GLES20.glTexParameteri(r0, i, i2);
|
|
GLES20.glTexParameteri(p.m86constructorimpl(this.this$0.f1518c), f.h, i2);
|
|
d.b("glTexParameter");
|
|
return Unit.a;
|
|
}
|
|
}
|