LWJGL Forum

Programming => OpenGL => Topic started by: Kixxass on May 11, 2006, 10:23:24

Title: LWJGL + XGL - Could not choose visual
Post by: Kixxass on May 11, 2006, 10:23:24
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
Title: LWJGL + XGL - Could not choose visual
Post by: Matzon on May 11, 2006, 11:18:17
looks to be an X issue more that lwjgl?

try enabling software mode (-Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true)
Title: LWJGL + XGL - Could not choose visual
Post by: darkprophet on May 12, 2006, 10:20:51
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
Title: LWJGL + XGL - Could not choose visual
Post by: Sake on May 16, 2006, 07:41:30
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.