LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: brockmeister on November 16, 2004, 14:32:26

Title: Pixel formats problem
Post by: brockmeister on November 16, 2004, 14:32:26
I'm running LWJGL on Fedora Core 2 with a Geforce 2 MX.

Whenever I try to run any of the examples which use OpenGL, or any of my own apps, I get the message:

Quoteorg.lwjgl.LWJGLException: Could not find a matching pixel format
       at org.lwjgl.opengl.Display.createContext(Native Method)
       at org.lwjgl.opengl.Display.create(Unknown Source)
       at org.lwjgl.opengl.Display.create(Unknown Source)
       at org.lwjgl.examples.spaceinvaders.Game.initialize(Unknown Source)
       at org.lwjgl.examples.spaceinvaders.Game.<init>(Unknown Source)
       at org.lwjgl.examples.spaceinvaders.Game.main(Unknown Source)

That's from the Space Invaders example.

It could just be because I haven't got my nVidia display drivers working properly, and all the OpenGL games I run are really slow (2 or 3 fps) but how could it stop LWJGL from working entirely?

Does anyone else get that error?
Title: Pixel formats problem
Post by: princec on November 16, 2004, 15:00:00
Yes, you haven't installed your drivers properly. And the message means what it says, more or less: that it can't find a suitable hardware accelerated format, in which case there's not a whole lot point in it continuing!

I suggest you grab the latest drivers from Nvidia.

Cas :)
Title: Pixel formats problem
Post by: brockmeister on November 17, 2004, 15:09:42
That's the trouble - I've installed the NVIDIA drivers, trying several different versions, and they've worked fine apart from the AGP. It says the AGP is working - glxgears in pumped up from 60fps to about 200fps but that's still really low. Other than that I haven't noticed any differences.
Title: Pixel formats problem
Post by: brockmeister on November 17, 2004, 15:57:50
S'alright, it works now. The problem was that OpenGL was trying to use the software (Mesa) libraries. I deleted the Mesa libraries, so now it works fine.