Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Class247_Sub1(Canvas paramCanvas, Interface2 paramInterface2, int paramInt1, int paramInt2, Class142 paramClass142)
- {
- super(paramInt1, paramInterface2);
- this.aCanvas3670 = paramCanvas;
- int i = 0;
- while (!(this.aCanvas3670.isShowing()))
- {
- if (i++ > 5)
- throw new RuntimeException("");
- Class211_Sub4.method2450(-28114, 1000L);
- }
- this.aCanvas3670.setIgnoreRepaint(true);
- try
- {
- if ((aBoolean3676 == null) || (!(aBoolean3676.booleanValue())))
- if (paramClass142 != null)
- {
- Class19 localClass19 = paramClass142.method1869(113, getClass());
- while (localClass19.anInt278 == 0)
- Class211_Sub4.method2450(-28114, 100L);
- if (localClass19.anInt278 == 1)
- aBoolean3676 = Boolean.TRUE;
- }
- else
- {
- System.loadLibrary("jawt");
- System.loadLibrary("jaggl");
- aBoolean3676 = Boolean.TRUE;
- }
- if ((aBoolean3676 == null) || (!(aBoolean3676.booleanValue())))
- throw new RuntimeException("");
- this.aContext3668 = new context();
- if (!(this.aContext3668.method1482(this.aCanvas3670, paramInt2, 0)))
- throw new RuntimeException("");
- if (!(this.aContext3668.createContext()))
- throw new RuntimeException("");
- method2898();
- this.anOpengl3667 = this.aContext3668.method1484();
- int j = method2858();
- if (j != 0)
- throw new RuntimeException("");
- this.anInt3715 = ((this.aBoolean3784) ? 33639 : 5121);
- String str1 = this.aString3739.toLowerCase();
- String str2 = this.aString3758.toLowerCase();
- if (str2.indexOf("radeon") != -1)
- {
- int k = 0;
- int l = 0;
- int i1 = 0;
- String[] arrayOfString = Class130.method1804(0, ' ', str2.replace('/', ' '));
- for (int i2 = 0; i2 < arrayOfString.length; ++i2)
- {
- String str3 = arrayOfString[i2];
- try
- {
- if (str3.length() <= 0)
- break label848:
- if ((str3.charAt(0) == 'x') && (str3.length() >= 3) && (RuntimeException_Sub1.method2973(false, str3.substring(1, 3))))
- {
- str3 = str3.substring(1);
- i1 = 1;
- }
- if (str3.equals("hd"))
- {
- l = 1;
- break label848:
- }
- if (str3.startsWith("hd"))
- {
- str3 = str3.substring(2);
- l = 1;
- }
- if ((str3.length() >= 4) && (RuntimeException_Sub1.method2973(false, str3.substring(0, 4))))
- {
- k = Class90.method1412(109, str3.substring(0, 4));
- break label854:
- }
- }
- catch (Exception localException2)
- {
- }
- }
- if ((i1 == 0) && (l == 0))
- {
- if ((k >= 7000) && (k <= 7999))
- label848: label854: this.aBoolean3725 = false;
- if ((k >= 7000) && (k <= 9250))
- this.aBoolean3802 = false;
- }
- if ((l == 0) || (k < 4000))
- this.aBoolean3777 = false;
- this.aBoolean3747 &= this.anOpengl3667.method1499("GL_ARB_half_float_pixel");
- this.aBoolean3770 = this.aBoolean3725;
- }
- if (str1.contains("intel"))
- this.aBoolean3719 = false;
- if (this.aBoolean3725)
- try
- {
- int[] arrayOfInt = new int[1];
- this.anOpengl3667.method1548(1, arrayOfInt, 0);
- }
- catch (Throwable localThrowable2)
- {
- throw new RuntimeException("", localThrowable2);
- }
- method2877(this);
- method2745();
- method2887();
- new Class29(this);
- this.aClass41_3674 = new Class41(this, this.anInterface2_3456);
- Class3_Sub18_Sub27.method362(72, true, true);
- this.aBoolean3679 = true;
- this.aClass81_3669 = new Class81(this);
- this.aClass192_3666 = new Class192(this);
- this.aClass3_Sub38_Sub1_3675 = new Class3_Sub38_Sub1(this);
- method2864();
- this.anOpengl3667.glClear(16640);
- i = 0;
- try
- {
- this.aContext3668.swapBuffers();
- }
- catch (Exception localException1)
- {
- while (true)
- {
- if (i++ > 5)
- throw new RuntimeException("");
- Class211_Sub4.method2450(-28114, 100L);
- }
- }
- this.anOpengl3667.glClear(16384);
- }
- catch (Throwable localThrowable1)
- {
- localThrowable1.printStackTrace();
- method2781();
- throw new RuntimeException("OpenGL toolkit initialisation failed", localThrowable1);
- }
- }
Add Comment
Please, Sign In to add comment