56 lines
1.9 KiB
Java
56 lines
1.9 KiB
Java
package c.o.b.a;
|
|
|
|
import android.opengl.EGL14;
|
|
import android.opengl.GLES20;
|
|
import android.opengl.GLU;
|
|
import android.opengl.Matrix;
|
|
import android.util.Log;
|
|
import c.d.b.a.a;
|
|
import c.o.b.c.f;
|
|
import d0.p;
|
|
import d0.z.d.m;
|
|
/* compiled from: Egloo.kt */
|
|
public final class d {
|
|
public static final float[] a;
|
|
|
|
static {
|
|
float[] fArr = new float[16];
|
|
m.checkNotNullParameter(fArr, "$this$makeIdentity");
|
|
m.checkNotNullParameter(fArr, "matrix");
|
|
Matrix.setIdentityM(fArr, 0);
|
|
a = fArr;
|
|
}
|
|
|
|
public static final void a(String str) {
|
|
m.checkNotNullParameter(str, "opName");
|
|
int eglGetError = EGL14.eglGetError();
|
|
if (eglGetError != c.o.b.c.d.d) {
|
|
StringBuilder Q = a.Q("Error during ", str, ": EGL error 0x");
|
|
String hexString = Integer.toHexString(eglGetError);
|
|
m.checkNotNullExpressionValue(hexString, "Integer.toHexString(value)");
|
|
Q.append(hexString);
|
|
String sb = Q.toString();
|
|
Log.e("Egloo", sb);
|
|
throw new RuntimeException(sb);
|
|
}
|
|
}
|
|
|
|
public static final void b(String str) {
|
|
m.checkNotNullParameter(str, "opName");
|
|
int r0 = p.m86constructorimpl(GLES20.glGetError());
|
|
int i = f.a;
|
|
if (r0 != 0) {
|
|
StringBuilder Q = a.Q("Error during ", str, ": glError 0x");
|
|
String hexString = Integer.toHexString(r0);
|
|
m.checkNotNullExpressionValue(hexString, "Integer.toHexString(value)");
|
|
Q.append(hexString);
|
|
Q.append(": ");
|
|
String gluErrorString = GLU.gluErrorString(r0);
|
|
m.checkNotNullExpressionValue(gluErrorString, "GLU.gluErrorString(value)");
|
|
Q.append(gluErrorString);
|
|
String sb = Q.toString();
|
|
Log.e("Egloo", sb);
|
|
throw new RuntimeException(sb);
|
|
}
|
|
}
|
|
}
|