Hi all.
I don’t know if this could be a bug, but to me it seems quite strange. I tried this with the latest beta (4), but it didn’t change anything.
I’ve got an app (3d rasterizer) that works fine on my machine, which is an Athlon with an ATI Radeon 9600 running on Linux.
Recently I’ve been working on another computer, a laptop running Windoze with an older ATI (Radeon 7000 DDR x86/SSE2 is the string returned as Renderer). In this machine I found a problem in the initialization stage of my app.
I try to get a Device to be able to set fullscreen mode, but when I try to obtain a GraphicsConfiguration instance from the canvas, I only get a null, so my app crashes with a NullPointerException.
My code is as simple as this:
// create the canvas
canvas = new GLCanvas(glcaps);
// get the associated graphics device
GraphicsConfiguration gc = canvas.getGraphicsConfiguration();
device = gc.getDevice(); <-------------- NullPointerException!
The only thing I’ve come up with is getting the GraphicsConfiguration from the container window instead, which seems to work ok. But, since GLCanvas is an AWT widget too, where is the problem?.
I haven’t been able to spot any difference between the two setups that could be the root of the problem. Could this be any problem related to the laptop drivers, which seem to be a bit older?
Have you experienced any behaviour like this in the past?
Any feedback would be really appreciated.
Thanks for your time.