summaryrefslogtreecommitdiff
path: root/test/glx_public_api.c
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 /test/glx_public_api.c
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 'test/glx_public_api.c')
-rw-r--r--test/glx_public_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/glx_public_api.c b/test/glx_public_api.c
index 1eab7bf..e89a4a4 100644
--- a/test/glx_public_api.c
+++ b/test/glx_public_api.c
@@ -48,7 +48,7 @@ test_gl_version(void)
static bool
test_glx_version(void)
{
- int version = epoxy_glx_version();
+ int version = epoxy_glx_version(dpy, 0);
const char *version_string;
int ret;
int server_major, server_minor;