Using LWJGL on linux

I want to test my code on linux, and get an exception thrown because it cannot create a direct GLX context.

I found somewhere a post about some hidden switches text file that says you can do the following:

java -cp … -Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true …

I have tried this, and it does not make any difference. I checked the latest revision of the hidden switches file, it does list this property. I have verified with System.getProperty that this property has been set to “true”.

I ran glxgears, it worked fine, got about 129 fps in 5 seconds. I ran glxgears with -info, and it said the renderer is Mesa GLX Indirect, so I assume Indirect means a software renderer.

Is there anything else I can do?

Tx.

LWJGL, even in software mode, requires a direct GLX context rather than an indirect one. Indirect ones are what remote X terminals and the like are prone to using, no good for games and other high framerate stuff, so we just don’t allow it. Hopefully Elias will be along to tell you how to get it to go direct.

Cas :slight_smile: