Gears demo now throws GLException with new version

Hi,

I have a laptop with a pretty low spec graphics card (SiS650) which I test jogl (and Xith3D) on from time to time.

The latest version of JOGL causes the following exception. Previous version ran fine.


C:\jogl>java -cp jogl.jar;jogl-demos-data.jar;jogl-demos-util.jar;jogl-demos.jar
 demos.gears.Gears
CANVAS GL IS: net.java.games.jogl.impl.windows.WindowsGLImpl
CANVAS GLU IS: net.java.games.jogl.impl.GLUImpl
net.java.games.jogl.GLException: Error re-describing the chosen pixel format
        at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAn
dCreateContext(WindowsGLContext.java:456)
        at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(Wind
owsOnscreenGLContext.java:204)
        at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(Windows
GLContext.java:133)
        at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent
(WindowsOnscreenGLContext.java:110)
        at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:203)
        at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:97)
        at java.awt.Component.setBounds(Unknown Source)
        at java.awt.BorderLayout.layoutContainer(Unknown Source)
        at java.awt.Container.layout(Unknown Source)
        at java.awt.Container.doLayout(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validate(Unknown Source)
        at java.awt.Window.show(Unknown Source)
        at net.java.games.jogl.impl.windows.WindowsGLContextFactory.getDummyGLCo
ntext(WindowsGLContextFactory.java:124)
        at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAn
dCreateContext(WindowsGLContext.java:264)
        at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(Wind
owsOnscreenGLContext.java:204)
        at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(Windows
GLContext.java:133)
        at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent
(WindowsOnscreenGLContext.java:110)
        at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:203)
        at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:186)
        at net.java.games.jogl.GLCanvas.display(GLCanvas.java:74)
        at net.java.games.jogl.Animator$1.run(Animator.java:104)
        at java.lang.Thread.run(Unknown Source)

Any ideas?

Thanks,

Will.

even the current JWS demos for example this one: https://jogl-demos.dev.java.net/webstart/InfiniteShadowVolumes.jnlp and Gears run. Presumably they are from the older version.

Will.

It looks like during the last code restructuring for full-scene antialiasing, a couple of needed lines may have been lost which filled in the size and version fields of the PIXELFORMATDESCRIPTOR data structure. I’m not 100% sure about this, though. To be safe I’ve added them into the appropriate place. Could you either try building from the repository or try tonight’s nightly build and post to let us know whether there is any change in behavior?

Ken,

Many thanks for the fix, everything works fine now for me using the latest nightly build (27th April).

Cheers,

Will.