Hi
I get the following error when I try to run gluBuildMipMaps:
Caused by: java.nio.BufferUnderflowException
at java.nio.Buffer.nextGetIndex(Unknown Source)
at java.nio.DirectByteBuffer.get(Unknown Source)
at net.java.games.jogl.impl.mipmap.ScaleInternal.scale_internal_ubyte(ScaleInternal.java:243)
at net.java.games.jogl.impl.mipmap.BuildMipmap.gluBuild2DMipmapLevelsCore(BuildMipmap.java:521)
at net.java.games.jogl.impl.mipmap.Mipmap.gluBuild2DMipmaps(Mipmap.java:719)
at net.java.games.jogl.impl.GLUImpl.gluBuild2DMipmapsJava(GLUImpl.java:587)
at net.java.games.jogl.impl.GLUImpl.gluBuild2DMipmaps(GLUImpl.java:823)
The same .jpg works with the old C glu implementation when running with the tag -Djogl.glu.nojava.
The .jpg is 64x126 which seems to be the problem. However I belive that glu should be able to handle
non power of 2 textures.
Is this a known bug or should I submitt it. I’m using the latest binary build?
BTW. Is there some progress in adding gamma correction to jogl ?
Cheers
// Tomas