static inline void write_string(const unsigned char *s)
{
- write_data(s, strlen(s));
+ write_data(s, strlen(s)+1);
}
static inline void begin_packet(int func)
return 1;
}
+void (*glXGetProcAddress(const GLubyte *procname))(void)
+{
+ void *handle = dlopen(NULL, RTLD_LAZY);
+ return dlsym(handle, (const char *)procname);
+}
+
+void (*glXGetProcAddressARB(const GLubyte *))(void) __attribute__((alias("glXGetProcAddress")));
+
#include "glwrap.funcs"