Hi
We have encountered two issues when shifting from the Februrary 17 release to April 20.
The code works without issues with the February 17 release and the issues appear on both
OSX and WinXP and Java 1.5 (ATI and Nvidia hardware). When rendering we use a external context mechanism, however the actual context is still an GLCanvas for debug purpose. The issues are:
Issue1:
When building mipmaps we get a “NullPointerException”
Exception in thread “main” java.lang.NullPointerException
at com.sun.opengl.impl.mipmap.Mipmap.closestFit(Mipmap.java:242)
at com.sun.opengl.impl.mipmap.Mipmap.gluBuild2DMipmaps(Mipmap.java:687)
at javax.media.opengl.glu.GLU.gluBuild2DMipmapsJava(GLU.java:1523)
at javax.media.opengl.glu.GLU.gluBuild2DMipmaps(GLU.java:1579)
at com.agency9.server.resources.optimized.GLTexture2D.allocate(GLTexture2D.java:21)
at com.agency9.server.resources.optimized.GLTexture2D.(GLTexture2D.java:16)
Issue2:
The second issue comes when we try to assign a glVertexPointer where we alos get an “NullPointerException”.
java.lang.NullPointerException
at com.sun.opengl.impl.FunctionAvailabilityCache$Version.(FunctionAvailabilityCache.java:296)
at com.sun.opengl.impl.FunctionAvailabilityCache.initAvailableExtensions(FunctionAvailabilityCache.java:133)
at com.sun.opengl.impl.FunctionAvailabilityCache.isExtensionAvailable(FunctionAvailabilityCache.java:104)
at com.sun.opengl.impl.GLContextImpl.isExtensionAvailable(GLContextImpl.java:328)
at com.sun.opengl.impl.macosx.MacOSXGLContext.isExtensionAvailable(MacOSXGLContext.java:229)
at com.sun.opengl.impl.GLImpl.isExtensionAvailable(GLImpl.java:27851)
at com.sun.opengl.impl.GLImpl.initBufferObjectExtensionChecks(GLImpl.java:27994)
at com.sun.opengl.impl.GLImpl.checkArrayVBODisabled(GLImpl.java:28064)
at com.sun.opengl.impl.GLImpl.glVertexPointer(GLImpl.java:25295)
at com.agency9.server.kernels.first.KernelImplementation.setMesh(KernelImplementation.java:263)
Cheers
// Tomas