Ok, I think the EGL_Open is place at the wrong place. I don't notice that on the Pandora because I use Framebuffer context (skipping X11/SDL for the Video).
What you need to do is:
In main.cpp
arround line 350, disable
#if defined(HAVE_GLES2)
if (EGL_Open()) {
msgBox("Startup Error", "Couldn't initialize EGL.");
exit(1);
}
#endif
by putting #if 0 //defined(HAVE_GLES2)
Then, on graphics.cpp
Change
if( SDL_SetVideoMode( realWinWidth, realWinHeight, 32, videoflags ) == 0 ) {
msgBox("Startup Error: Couldn't set video mode.", SDL_GetError());
#if defined(HAVE_GLES2)
EGL_Close();
#endif
SDL_Quit();
exit(2);
}
debugOut( "Video mode %d %d set successfully.\n", realWinWidth, realWinHeight);
#if defined(HAVE_GLES2)
EGL_Init();
#endif
to
if( SDL_SetVideoMode( realWinWidth, realWinHeight, 32, videoflags ) == 0 ) {
msgBox("Startup Error: Couldn't set video mode.", SDL_GetError());
SDL_Quit();
exit(2);
}
debugOut( "Video mode %d %d set successfully.\n", realWinWidth, realWinHeight);
#if defined(HAVE_GLES2)
EGL_Open();
EGL_Init();
#endif
You'll put back the printf if needed, but it should work better this way.