I may be totally misunderstanding glXGetProcAddress, but it seems to me that the following *should* be valid:
void (*glBegin)( GLenum mode ) = NULL; void begin_wrapper( GLenum mode ) { if ( glBegin == NULL ) { glBegin = glXGetProcAddress( "glBegin" ); } (*glBegin)( mode ); } What ends up happening is glXGetProcAddress returns the address of the glBegin symbol from my executable (in this case the address of the pointer to function) instead of the address of the glBegin symbol in the library. Is this behavior to spec? -- Tell that to the Marines! _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel