LWJGL Forum

Programming => OpenGL => Topic started by: NateS on April 11, 2009, 18:32:33

Title: Display creation fails on Windows 7
Post by: NateS on April 11, 2009, 18:32:33
A user has reported this error on Windows 7:
Quote
org.lwjgl.LWJGLException: Pixel format not accelerated
   at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)
   at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)
   at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:174)
   at org.lwjgl.opengl.Display.createWindow(Display.java:308)
   at org.lwjgl.opengl.Display.create(Display.java:816)
   at org.lwjgl.opengl.Display.create(Display.java:744)
   at singsong.game.SingSongGameContainer.<init>(SingSongGameContainer.java:50)
   at singsong.game.SingSongGame$2.run(SingSongGame.java:263)
   at singsong.game.SingSongGame.main(SingSongGame.java:291)

Here is a code snippet showing the code that fails:

try {
Display.create(new PixelFormat(8, 8, 0, samples));
} catch (Throwable ex1) {
Display.destroy();
try {
Display.create(new PixelFormat(8, 8, 0));
} catch (Throwable ex2) {
Display.destroy();
Display.create(new PixelFormat()); // FAILS HERE!
}
}

FWIW, samples == 0.

Any ideas?

Edit: fixed [ code ] tag.
Title: Re: Display creation fails on Windows 7
Post by: kappa on April 11, 2009, 18:47:01
any idea's which graphics card the user has?
Title: Re: Display creation fails on Windows 7
Post by: NateS on April 11, 2009, 19:06:53
Yes, sort of. I should have included that they are using a "Dell Vostro 1500". From a cursory search, it appears the cheapest option is an nVidia GeForce 8400 GS. It seems to be a relatively recent computer (the latest similar Dell Vostro is only at model number 1520).
Title: Re: Display creation fails on Windows 7
Post by: Matzon on April 11, 2009, 20:09:57
Missing OpenGL drivers. Either add allowSoftwareOpenGL or ask them to install drivers.
Title: Re: Display creation fails on Windows 7
Post by: NateS on April 16, 2009, 20:46:53
Bingo. allowSoftwareOpenGL let it run, but at ~5fps. Thanks guys!