Pixel format not accelerated (sometimes...)

I’m getting a very strange error, I don’t know if it is due to my crappy Intel integrated graphics card.


w=1024;h=768;
DisplayMode dm = new DisplayMode(w,h);
Display.setDisplayMode(dm);
Display.create();

When I run it as a stand alone application, it runs fine.
When I run it as an Applet, on Eclipse’s applet viewer, it runs fine.
When I run in a browser as an applet, I get the error :

org.lwjgl.LWJGLException: Pixel format not accelerated

Sometimes, I refresh the page and then it loads fines. Sometimes it fails again.

Oh, and if I change w=800 and h=600, it never fails.

I’m using LWJGL 2.8.3.

Should I worry about it, or is it just my graphics card ?

I wouldn’t worry about it; more like sigh and roll my eyes again at Intel cards.

Are you really creating a new window in your applet? Isn’t it easier to just add a canvas to the applet and set it as the Display’s parent? No need for any display modes, and it should just work.

I get this too when I use an ATI Radeon 9250 Pro with Xorg driver.