<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'"
href="https://bugs.freedesktop.org/show_bug.cgi?id=78101#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'"
href="https://bugs.freedesktop.org/show_bug.cgi?id=78101">bug 78101</a>
from <span class="vcard"><a class="email" href="mailto:idr@freedesktop.org" title="Ian Romanick <idr@freedesktop.org>"> <span class="fn">Ian Romanick</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>