Always define GLFW_EXPOSE_NATIVE_GLX

This commit is contained in:
Jarcode
2018-02-07 17:12:45 -08:00
parent ab55156826
commit f539f18135

2
xwin.c
View File

@@ -18,9 +18,7 @@
#define GLFW_EXPOSE_NATIVE_X11
/* Hack to make GLFW 3.1 headers work with GLava. We don't use the context APIs from GLFW, but
the old headers require one of them to be selected for exposure in glfw3native.h. */
#if (GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR <= 1)
#define GLFW_EXPOSE_NATIVE_GLX
#endif
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>