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

--- Comment #5 from Ian Romanick <i...@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to