mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-25 12:42:04 +08: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user