Guest User

Untitled

a guest
Jul 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 KB | None | 0 0
  1. public Class247_Sub1(Canvas paramCanvas, Interface2 paramInterface2, int paramInt1, int paramInt2, Class142 paramClass142)
  2. {
  3. super(paramInt1, paramInterface2);
  4. this.aCanvas3670 = paramCanvas;
  5. int i = 0;
  6. while (!(this.aCanvas3670.isShowing()))
  7. {
  8. if (i++ > 5)
  9. throw new RuntimeException("");
  10. Class211_Sub4.method2450(-28114, 1000L);
  11. }
  12. this.aCanvas3670.setIgnoreRepaint(true);
  13. try
  14. {
  15. if ((aBoolean3676 == null) || (!(aBoolean3676.booleanValue())))
  16. if (paramClass142 != null)
  17. {
  18. Class19 localClass19 = paramClass142.method1869(113, getClass());
  19. while (localClass19.anInt278 == 0)
  20. Class211_Sub4.method2450(-28114, 100L);
  21. if (localClass19.anInt278 == 1)
  22. aBoolean3676 = Boolean.TRUE;
  23. }
  24. else
  25. {
  26. System.loadLibrary("jawt");
  27. System.loadLibrary("jaggl");
  28. aBoolean3676 = Boolean.TRUE;
  29. }
  30. if ((aBoolean3676 == null) || (!(aBoolean3676.booleanValue())))
  31. throw new RuntimeException("");
  32. this.aContext3668 = new context();
  33. if (!(this.aContext3668.method1482(this.aCanvas3670, paramInt2, 0)))
  34. throw new RuntimeException("");
  35. if (!(this.aContext3668.createContext()))
  36. throw new RuntimeException("");
  37. method2898();
  38. this.anOpengl3667 = this.aContext3668.method1484();
  39. int j = method2858();
  40. if (j != 0)
  41. throw new RuntimeException("");
  42. this.anInt3715 = ((this.aBoolean3784) ? 33639 : 5121);
  43. String str1 = this.aString3739.toLowerCase();
  44. String str2 = this.aString3758.toLowerCase();
  45. if (str2.indexOf("radeon") != -1)
  46. {
  47. int k = 0;
  48. int l = 0;
  49. int i1 = 0;
  50. String[] arrayOfString = Class130.method1804(0, ' ', str2.replace('/', ' '));
  51. for (int i2 = 0; i2 < arrayOfString.length; ++i2)
  52. {
  53. String str3 = arrayOfString[i2];
  54. try
  55. {
  56. if (str3.length() <= 0)
  57. break label848:
  58. if ((str3.charAt(0) == 'x') && (str3.length() >= 3) && (RuntimeException_Sub1.method2973(false, str3.substring(1, 3))))
  59. {
  60. str3 = str3.substring(1);
  61. i1 = 1;
  62. }
  63. if (str3.equals("hd"))
  64. {
  65. l = 1;
  66. break label848:
  67. }
  68. if (str3.startsWith("hd"))
  69. {
  70. str3 = str3.substring(2);
  71. l = 1;
  72. }
  73. if ((str3.length() >= 4) && (RuntimeException_Sub1.method2973(false, str3.substring(0, 4))))
  74. {
  75. k = Class90.method1412(109, str3.substring(0, 4));
  76. break label854:
  77. }
  78. }
  79. catch (Exception localException2)
  80. {
  81. }
  82. }
  83. if ((i1 == 0) && (l == 0))
  84. {
  85. if ((k >= 7000) && (k <= 7999))
  86. label848: label854: this.aBoolean3725 = false;
  87. if ((k >= 7000) && (k <= 9250))
  88. this.aBoolean3802 = false;
  89. }
  90. if ((l == 0) || (k < 4000))
  91. this.aBoolean3777 = false;
  92. this.aBoolean3747 &= this.anOpengl3667.method1499("GL_ARB_half_float_pixel");
  93. this.aBoolean3770 = this.aBoolean3725;
  94. }
  95. if (str1.contains("intel"))
  96. this.aBoolean3719 = false;
  97. if (this.aBoolean3725)
  98. try
  99. {
  100. int[] arrayOfInt = new int[1];
  101. this.anOpengl3667.method1548(1, arrayOfInt, 0);
  102. }
  103. catch (Throwable localThrowable2)
  104. {
  105. throw new RuntimeException("", localThrowable2);
  106. }
  107. method2877(this);
  108. method2745();
  109. method2887();
  110. new Class29(this);
  111. this.aClass41_3674 = new Class41(this, this.anInterface2_3456);
  112. Class3_Sub18_Sub27.method362(72, true, true);
  113. this.aBoolean3679 = true;
  114. this.aClass81_3669 = new Class81(this);
  115. this.aClass192_3666 = new Class192(this);
  116. this.aClass3_Sub38_Sub1_3675 = new Class3_Sub38_Sub1(this);
  117. method2864();
  118. this.anOpengl3667.glClear(16640);
  119. i = 0;
  120. try
  121. {
  122. this.aContext3668.swapBuffers();
  123. }
  124. catch (Exception localException1)
  125. {
  126. while (true)
  127. {
  128. if (i++ > 5)
  129. throw new RuntimeException("");
  130. Class211_Sub4.method2450(-28114, 100L);
  131. }
  132. }
  133. this.anOpengl3667.glClear(16384);
  134. }
  135. catch (Throwable localThrowable1)
  136. {
  137. localThrowable1.printStackTrace();
  138. method2781();
  139. throw new RuntimeException("OpenGL toolkit initialisation failed", localThrowable1);
  140. }
  141. }
Add Comment
Please, Sign In to add comment