Wagic does not start


ldaneels

Member
Joined
Mar 9, 2003
Messages
169
I downloaded the latest version of Wagic on the repo & I cannot launch it.

It seems to be due to the graphic drivers (I am on 4.10) as when I revert to 4.03.02, the game works fine.

Any chance we could get the game to run under drivers 4.10 ?

Thanks,

Loic
 
I don't know how to solve this problem, but it seems related to EGL.

WSEGL_InitialiseDisplay: DRI2OpenConnection failed

QEgl::display(): Cannot initialize EGL display: "Not initialized (0x3001)" 

QEglContext::chooseConfig(): Could not find a suitable EGL configuration 

Requested: "type=es2 rgba=0,0,0,0 surface-type=window"

 

Almost the same error i reported on repo with Enemy Territory.

 

Here is the code if someone could help:

 

https://github.com/WagicProject/wagic/blob/master/JGE/src/qt/corewrapper.cpp
 
I don't know how to solve this problem, but it seems related to EGL.

WSEGL_InitialiseDisplay: DRI2OpenConnection failed

QEgl::display(): Cannot initialize EGL display: "Not initialized (0x3001)" 

QEglContext::chooseConfig(): Could not find a suitable EGL configuration 

Requested: "type=es2 rgba=0,0,0,0 surface-type=window"

 

Almost the same error i reported on repo with Enemy Territory.

 

Here is the code if someone could help:

 

https://github.com/WagicProject/wagic/blob/master/JGE/src/qt/corewrapper.cpp
For ennemy territory, I knwo how to solve the issue, just I haven't yet (not enough hour in a single day).

When creating egl Context, use EGL_DEFAULT_DISPLAY as a display (no XDefaultDisplay) and when creating the eglSurface use NULL as Window.

But for QT, EGL Context is created inside the GLES2 part of QT IIRC, so a patch (i.e. some Hugly Hack) will have to be created and QT recompiled with it for Wagic (or other QT/GLES2 soft & games) to work with newer SGX drivers.

*EDIT*: Nope, it seems Wagic doesn't use QT/GLES2 but its own wrapper. I suppose EGL Context is created using SDL functions (using #define ANDROID? I never used SDL to create a GLES context in fact). If that's the case, look at my port of ioquake3 on github (here: https://github.com/ptitSeb/ioq3/tree/master/code/sdl), and grab the modified version of eglport that is here. Then use the context creation / deletion / Swapbuffer. I could also take a look at SDL itself (hugly patch again?), but not sure when I will have time for that.
 
Last edited by a moderator:
Back
Top