https://bugs.freedesktop.org/show_bug.cgi?id=30172
--- Comment #19 from Luca Barbieri <luca.barbi...@gmail.com> 2010-09-16 21:18:31 PDT --- > ELF weak symbols do not allow one to decide behavior (OpenGL library) > at runtime -- mangling aside. AFAIK, glXGetProcAddress also doesn't, because you can call it without a context bound, and thus libGL has no more information than the one it has at compilation time. See http://dri.freedesktop.org/wiki/glXGetProcAddressNeverReturnsNULL Note, BTW, that wglGetProcAddress returns context-dependent pointers, so it has some reason for existing (even though it's still an unreasonable burden for the programmer to have to use it). > We *still* have to support systems that do not have dlsym =( I'm curious, how can such a system exist? Surely a system with dynamic linking must have something like dlsym (perhaps with another name, like GetProcAddress in Windows). And if dynamic linking is not supported, then you'll be limited to a single GL implementation and thus you don't need dlsym since you know exactly what is available (and it's better to fail at build time in this case). -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev