System.out.println("Checking minmax");
hasMinMax = WurmClient.extensions.contains("GL_EXT_blend_minmax");
if (!gl.isFunctionAvailable("glBlendEquation")) hasMinMax = false;
“Checking minmax” gets printed. Yet, still, later on:
javax.media.opengl.GLException: Method "glBlendEquation" not available
at com.sun.opengl.impl.GLImpl.glBlendEquation(GLImpl.java:562)
at class.ax.e(SourceFile:177)
at class.ax.a(SourceFile:75)
at class.F.c(SourceFile:507)
at class.I.a(SourceFile:69)
at com.wurmonline.client.WurmClient.f(SourceFile:262)
at com.wurmonline.client.WurmClient.run(SourceFile:147)
at java.lang.Thread.run(Unknown Source)
At the following line:
gl.glBlendEquation(GL.GL_MAX);
I had to solve it by wrapping that entire block in a try{ … } catch (GLExcepition e) { hasMinMax = false; }
Is it possible the function is available, but just not for that parameter, and the thrown exception is wrong?