LWJGL + XGL - Could not choose visual

Started by Kixxass, May 11, 2006, 10:23:24

Previous topic - Next topic

Kixxass

Is it possible to use LWJGL-0.99 / OpenGL with XGL?

The error msg i get is the following:

Exception in thread "main" java.lang.NullPointerException
	at org.lwjgl.opengl.GL11.glEnable(GL11.java:913)
Xlib:  extension "XFree86-DRI" missing on display ":1.0".

Could not choose visual


The extension missing error message is ok, as it appears with every OpenGL app.
Other OpenGL apps/games (Tested: Blender, foobillard, glxgears) work.

I'd greatly appreciate any advice.

Thanks
Kixxass

Matzon

looks to be an X issue more that lwjgl?

try enabling software mode (-Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true)

darkprophet

Xgl simply sits ontop of Xorg and it supplies it with HW accelerated rendering, the choosing of the visuals should remain the same from what I understand...

Xegl is the remake of Xorg to have HW accelerated built in, and if its any help, Quake4 doesn't run with Xgl

DP

Sake

According to a Xgl developer, direct rendering is available if in fullscreen mode. The screen is then handed to the parent Xserver, which is not an Xgl, but a normal Xorg or whatever.
That is the reason why  you get this "no DRI" message but OpenGL actually works.
I guess the reason why it is not working is that there is any check against DRI which breaks if it isnt' available.