preload libGL

Tomas Carnecky tom at dbservice.com
Wed Oct 12 04:55:10 CDT 2005


I need to preload my own library with a custom glXSwapBuffers(). But 
wine opengl libGL.so directly so there's no way to do it.

I've ended up doing this:
glXSwapBuffersType preload__glXSwapBuffers = (glXSwapBuffersType) 
wine_dlsym(RTLD_DEFAULT, "glXSwapBuffers", NULL, 0);
preload__glXSwapBuffers(gdi_display, physDev->drawable);

but that is not a nice solution.

What about linking x11drv directly with libGL?

tom




More information about the wine-devel mailing list