[Mesa-dev] [Bug 78101] [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 30 09:10:31 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=78101

--- Comment #5 from Ian Romanick <idr at freedesktop.org> ---
The demos need to use eglGetProcAddress for extension functions.  The patch is
the right approach, but having a non-static function pointer with the same name
as a function is very dangerous.  You wouldn't declare 'int (*printf)(const
char *, ...);' in your code and expect things to work, would you? :)

This is why GLEW names the function pointers __glewFoo and has a #define glFoo
that calls it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140430/6e46a27a/attachment-0001.html>


More information about the mesa-dev mailing list