/* Class90 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import jaggl.OpenGL;

public class Class90
{
    Class151_Sub3 aClass151_Sub3_1233;
    int anInt1234;
    static int[] anIntArray1235 = new int[2];
    
    Class90(Class151_Sub3 class151_sub3, int i, Class102[] class102s) {
	((Class90) this).aClass151_Sub3_1233 = class151_sub3;
	((Class90) this).anInt1234 = i;
    }
    
    static Class90 method1246(Class151_Sub3 class151_sub3,
			      Class102[] class102s) {
	for (int i = 0; i < class102s.length; i++) {
	    if (class102s[i] == null
		|| ((Class102) class102s[i]).anInt1356 <= 0)
		return null;
	}
	int i = OpenGL.glCreateProgram();
	for (int i_0_ = 0; i_0_ < class102s.length; i_0_++)
	    OpenGL.glAttachShader(i, ((Class102) class102s[i_0_]).anInt1356);
	OpenGL.glLinkProgram(i);
	OpenGL.glGetProgramiv(i, 35714, anIntArray1235, 0);
	if (anIntArray1235[0] == 0) {
	    OpenGL.glGetProgramiv(i, 35716, anIntArray1235, 1);
	    if (anIntArray1235[1] > 1) {
		byte[] is = new byte[anIntArray1235[1]];
		OpenGL.glGetProgramInfoLog(i, anIntArray1235[1],
					   anIntArray1235, 0, is, 0);
		System.out.println(new String(is));
	    }
	    if (anIntArray1235[0] == 0) {
		for (int i_1_ = 0; i_1_ < class102s.length; i_1_++)
		    OpenGL.glDetachShader(i, (((Class102) class102s[i_1_])
					      .anInt1356));
		OpenGL.glDeleteProgram(i);
		return null;
	    }
	}
	return new Class90(class151_sub3, i, class102s);
    }
    
    public void finalize() throws Throwable {
	((Class90) this).aClass151_Sub3_1233
	    .method8626((long) ((Class90) this).anInt1234);
	super.finalize();
    }
    
    void method1247() throws Throwable {
	((Class90) this).aClass151_Sub3_1233
	    .method8626((long) ((Class90) this).anInt1234);
	super.finalize();
    }
    
    void method1248() throws Throwable {
	((Class90) this).aClass151_Sub3_1233
	    .method8626((long) ((Class90) this).anInt1234);
	super.finalize();
    }
}
