discord-jadx/app/src/main/java/c/o/b/d/b.java

41 lines
1.2 KiB
Java

package c.o.b.d;
import android.opengl.GLES20;
import android.util.Log;
import c.o.b.a.d;
import d0.p;
import d0.z.d.m;
import kotlin.NoWhenBranchMatchedException;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: GlProgramLocation.kt */
public final class b {
public final int a;
public final int b;
/* renamed from: c reason: collision with root package name */
public final String f1516c;
public b(int i, int i2, String str, DefaultConstructorMarker defaultConstructorMarker) {
int i3;
this.f1516c = str;
int h = c.c.a.y.b.h(i2);
if (h == 0) {
i3 = GLES20.glGetAttribLocation(p.m86constructorimpl(i), str);
} else if (h == 1) {
i3 = GLES20.glGetUniformLocation(p.m86constructorimpl(i), str);
} else {
throw new NoWhenBranchMatchedException();
}
this.a = i3;
float[] fArr = d.a;
m.checkNotNullParameter(str, "label");
if (i3 >= 0) {
this.b = p.m86constructorimpl(i3);
return;
}
String str2 = "Unable to locate " + str + " in program";
Log.e("Egloo", str2);
throw new RuntimeException(str2);
}
}