mirror of
https://github.com/mpv-player/mpv
synced 2025-05-02 16:20:25 +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_cocoa=yes
|
||||
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
|
||||
_gl=no
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user