mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
6a88e7463e
The previous hack for fixing #7201 requires this, but it wasn't checked. It's easy to check, so do it. (Yes, we could just have required OpenGL 3.2 headers and skipped the earlier fix.) For #7201.
16 lines
319 B
C
16 lines
319 B
C
#include <X11/Xlib.h>
|
|
#include <GL/glx.h>
|
|
#include <stddef.h>
|
|
|
|
#ifndef GL_VERSION_2_0
|
|
#error "At least GL 2.0 headers needed."
|
|
#endif
|
|
|
|
int main(int argc, char *argv[]) {
|
|
glXCreateContext(NULL, NULL, NULL, True);
|
|
glXQueryExtensionsString(NULL, 0);
|
|
glXGetProcAddressARB("");
|
|
glXGetCurrentDisplay();
|
|
return 0;
|
|
}
|