Files

18 lines
428 B
C

/*
* Full header only only GLX, without X11 as dependency
*
* GLAD: $GLAD --out-path=$tmp --api="glx,gl:core" c --loader --header-only
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl -DGLAD_GLX_NO_X11
* RUN: $tmp/test
*/
#define GLAD_GLX_IMPLEMENTATION
#include <glad/glx.h>
int main(void) {
Display *display = NULL;
(void) gladLoaderLoadGLX(display, 0);
(void) gladLoaderUnloadGLX();
return 0;
}