JOGL 2.x -- Nehe Lesson07 error

Hi, all:

Sorry to bother you again.

Line 237 in Renderer.java
makeRGBTexture(gl, glu, texture, GL.GL_TEXTURE_2D, true);

Error message:

Exception in thread “Timer-0” javax.media.opengl.GLException: javax.media.opengl.GLException: not implemented
at com.sun.opengl.impl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:101)
at com.sun.opengl.impl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:190)
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:164)
at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:551)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:290)
at com.sun.opengl.util.AnimatorImpl.display(AnimatorImpl.java:50)
at com.sun.opengl.util.Animator.display(Animator.java:131)
at com.sun.opengl.util.FPSAnimator$1.run(FPSAnimator.java:95)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: javax.media.opengl.GLException: not implemented
at javax.media.opengl.glu.GLU.gluBuild2DMipmaps(GLU.java:1484)
at demos.nehe.lesson07.Renderer.makeRGBTexture(Renderer.java:277)
at demos.nehe.lesson07.Renderer.init(Renderer.java:237)
at demos.common.GLDisplay$MyHelpOverlayGLEventListener.init(GLDisplay.java:282)
at com.sun.opengl.impl.GLDrawableHelper.init(GLDrawableHelper.java:88)
at javax.media.opengl.awt.GLCanvas$InitAction.run(GLCanvas.java:603)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:149)
at javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:637)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Best Regards
JIA Pei

I posted here http://www.java-gaming.org/index.php/topic,20810.0.html this problem some weeks ago…

U can fix that changing the code to:

makeRGBTexture(gl, glu, texture, GL.GL_TEXTURE_2D, false);

When u put false in the code above the if inside the method do not make a call in glu.gluBuild2DMipmaps…

I think it has a bug in glu.gluBuild2DMipmaps.

I hope this can help you.

Bye…

This is the soluction: