[MPlayer-dev-eng] [PATCH] configure support for SDL-based -vo gl

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Apr 25 08:55:29 CEST 2010


On Sun, Apr 25, 2010 at 02:50:53AM -0400, Alexander Strange wrote:
> On Apr 25, 2010, at 2:30 AM, Reimar Döffinger wrote:
> > the largest part is moving the configure check below so it can reuse the SDL
> > detection.
> > Admittedly that gives it a false dependency on -vo sdl...
> > Some other hacks: if corevideo and SDL are enabled, it does not even try to
> > compile the X11 backend, because that is the only way it can avoid a -lGL in the
> > link command which causes crashes when you try to use OpenGL extensions.
> > This might be possible to avoid if SDL offers a way to query OpenGL function
> > pointers, but I haven't found one yet....
> 
> I haven't used it, but SDL_GL_GetProcAddress looks appropriate.

Yes, I'm looking into it, possibly combined with SDL_GL_LoadLibrary

> Hmm, SDL also includes its own copy of the standard OpenGL headers with a bunch of Windows names in it. That seems like it might cause problems on other systems if you use it instead of the real GL headers, though I guess they'd know that better than me…

Why do you think it might cause issues? Either way, so far it realies on the GL/gl.h header,
currently I am only targeting OS X and developing on Linux, using -vo gl via SDL on Windows
or anything is not yet a consideration for me.
Of course if someone wants to try to get it working somewhere else I'd be happy to look
at patches.



More information about the MPlayer-dev-eng mailing list