I have another weird porting error for JSR 231. While trying to diagnose another problem, I tried getting a program I’m developing up and running on my laptop. It has a cheap ATI Mobility Radeon HD 2300 and runs OpenGL 2.1.7. Now while my program runs fine on my desktop, on my laptop I get an exception whenever I try to call glCreateShader. However, my laptop is able to handle shaders and I’m able to call glCreateShader under JOGL 1.1.1a (albeit in a different program). (I’ve not run my current program on my laptop before, so I can’t say if this call would work for it under JOGL 1.1.1)
Exception in thread “AWT-EventQueue-0” javax.media.opengl.GLException: Method “glCreateShader” not available
at jogamp.opengl.gl4.GL4bcImpl.glCreateShader(GL4bcImpl.java:3115)
at javax.media.opengl.DebugGL2.glCreateShader(DebugGL2.java:28623)
at com.kitfox.coyote.renderer.jogl.GLWrapperJOGL.glCreateShader(GLWrapperJOGL.java:189)
at com.kitfox.coyote.renderer.CyMaterial.loadShader(CyMaterial.java:38)