2010-04-01, 19:23
McGeagh Wrote:its not needed really. Which means you can also remove all the SDL_GL_SetAttrib calls too.
Should work without it (my testapp does atleast).
I just did a blanket convert from GL to ES code, regardless of whether certain lines were still needed lol.
Cant we get rid of SDL entirely? its such a pain!
How are you setting up m_eglWindow/m_wmWindow ? Right now this comes from SDL_GetWMInfo (info.info.x11.window/info.info.x11.wmwindow) and without getting m_SDLSurface back from SDL_SetVideoMode, these are null.
We would need an X11 event handler that translates X11 events into XBMC events. I've got a similar bug up my ass about SDL under OSX as OSX is event driven and SDL does a poll for events. One thought is to make an simple event handler that translates X11 events and uses the eventclient model to send events via tcp/ip loopback. Cursor handling is another issue.