configure: disable X11 opengl backend if Cocoa is enabled
commite37d7b14522b56432c0d81a6b5ab1ce3f118cd4a
authorStefano Pigozzi <stefano.pigozzi@gmail.com>
Fri, 16 Mar 2012 20:41:41 +0000 (16 21:41 +0100)
committerUoti Urpala <uau@mplayer2.org>
Sun, 25 Mar 2012 19:30:37 +0000 (25 22:30 +0300)
tree6abf50bcd60e71789ccce2083170828aad778704
parente89ea0c371144dac8a5b930601f94bc5617c8810
configure: disable X11 opengl backend if Cocoa is enabled

The recommended way to get function pointers to the functions in the
OpenGL library is through dlopen/dlsym/dlclose. This causes problems
in the Cocoa OpenGL backend when -lGL (X11's OpenGL headers) is linked
to the binary together with -framework OpenGL.
The linked OpenGL symbols are always from -lGL, causing all the
function pointers to point to null when getFunctions is called against
a Cocoa OpenGL context.

For this reason change the configure autodetection code to disable
the vo_gl X11 backend when cocoa is active.
configure