Ian Romanick wrote: > > 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?
Probably the fact that you are declaring a symbol that is "reserved" by OpenGL invalidates your right to have GL act according to spec. You might get a link error if you tried to link this program against libGL.so, for instance. Keith _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel