mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 18:05:21 +00:00
Extend OpenGL configure test to also check for glx/wgl and proper linking.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23950 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0c3bfd09d9
commit
12316946dc
18
configure
vendored
18
configure
vendored
@ -4025,7 +4025,23 @@ echocheck "OpenGL"
|
||||
if (test "$_x11" = yes || win32) && test "$_gl" != no ; then
|
||||
cat > $TMPC << EOF
|
||||
#include <GL/gl.h>
|
||||
int main(void) { return 0; }
|
||||
#ifdef GL_WIN32
|
||||
#include <windows.h>
|
||||
#include <GL/glext.h>
|
||||
#else
|
||||
#include <X11/Xlib.h>
|
||||
#include <GL/glx.h>
|
||||
#endif
|
||||
int main(void) {
|
||||
#ifdef GL_WIN32
|
||||
HDC dc;
|
||||
wglCreateContext(dc);
|
||||
#else
|
||||
glXCreateContext(NULL, NULL, NULL, True);
|
||||
#endif
|
||||
glFinish();
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
_gl=no
|
||||
if cc_check -lGL $_ld_lm ; then
|
||||
|
Loading…
Reference in New Issue
Block a user