mirror of
https://github.com/mpv-player/mpv
synced 2025-05-04 17:19:29 +00:00
configure: check for presence of glext.h
vo_opengl depends on glext.h to build. Also link to Khronos' copy, which should work on all compilers and is kept up-to-date with newer extensions.
This commit is contained in:
parent
16b15885ff
commit
746b5e6027
12
configure
vendored
12
configure
vendored
@ -2175,6 +2175,18 @@ EOF
|
|||||||
_gl=yes
|
_gl=yes
|
||||||
_gl_cocoa=yes
|
_gl_cocoa=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cat > $TMPC << EOF
|
||||||
|
#include <GL/gl.h>
|
||||||
|
#include <GL/glext.h>
|
||||||
|
int main(int argc, char *argv[]) {
|
||||||
|
return !GL_INVALID_FRAMEBUFFER_OPERATION;
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
if ! cc_check; then
|
||||||
|
_gl=no
|
||||||
|
res_comment="missing glext.h, get from http://www.opengl.org/registry/api/glext.h"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
_gl=no
|
_gl=no
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user