summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-04 18:45:52 -0800
committerEric Anholt <eric@anholt.net>2013-12-04 19:18:31 -0800
commit0f67bf3f1192fb0bbd0b868eeb73a18f76951b01 (patch)
tree8ae10824b0fcd93f0fb6fc4d38372b932cda5425 /include
parent14f822ee91adc1531b7689d2f6083cdb1476154d (diff)
downloadlibepoxy-0f67bf3f1192fb0bbd0b868eeb73a18f76951b01.tar.gz
Fix bug in public entrypoint for epoxy_glx_version()
Unfortunately, for GLX 1.4+ entrypoints (just glxGetProcAddress currently) or extensions, if there isn't a context bound then we don't have a dpy and screen available to provide useful debug messages. Oh well.
Diffstat (limited to 'include')
-rw-r--r--include/epoxy/glx_common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/epoxy/glx_common.h b/include/epoxy/glx_common.h
index cee9f51..c23ec72 100644
--- a/include/epoxy/glx_common.h
+++ b/include/epoxy/glx_common.h
@@ -31,8 +31,11 @@
#include <stdbool.h>
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+
bool epoxy_has_glx_extension(const char *extension);
-int epoxy_glx_version(void);
+int epoxy_glx_version(Display *dpy, int screen);
#endif /* EPOXY_GLX_COMMON_H */