summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xdriinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xdriinfo.c b/xdriinfo.c
index 7d788e3..ebd368b 100644
--- a/xdriinfo.c
+++ b/xdriinfo.c
@@ -22,6 +22,7 @@
*
*/
+#define GLX_GLXEXT_LEGACY
#include <GL/glx.h>
#include <X11/Xlib.h>
#include <stdio.h>
@@ -57,8 +58,8 @@ int main (int argc, char *argv[]) {
char *funcArg = NULL;
char *dpyName = NULL;
- GetScreenDriver = (glXGetScreenDriver_t *)glXGetProcAddress ("glXGetScreenDriver");
- GetDriverConfig = (glXGetDriverConfig_t *)glXGetProcAddress ("glXGetDriverConfig");
+ GetScreenDriver = (glXGetScreenDriver_t *)glXGetProcAddressARB ("glXGetScreenDriver");
+ GetDriverConfig = (glXGetDriverConfig_t *)glXGetProcAddressARB ("glXGetDriverConfig");
if (!GetScreenDriver || !GetDriverConfig) {
fprintf (stderr, "libGL is too old.\n");
return 1;