<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - GL/gl_mangle.h misses symbols from GLES/gl.h"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91724#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - GL/gl_mangle.h misses symbols from GLES/gl.h"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91724">bug 91724</a>
from <span class="vcard"><a class="email" href="mailto:frederic.devernay@m4x.org" title="Frederic Devernay <frederic.devernay@m4x.org>"> <span class="fn">Frederic Devernay</span></a>
</span></b>
<pre><span class="quote">> - Using/setting GL_GLEXT_PROTOTYPES is a _very_ bad idea.</span >
Agreed. This patch *fixes* glext.h, but I do not use it anywhere. It is fixed
just in case someone crazy enough wants to use it.
More importantly, it fixes gl_mangle.h, which is included by glapi_getproc.c
when compiling a *mangled* OSMesa.
<span class="quote">> - Do you set USE_MGL_NAMESPACE when building the demo app ? </span >
better than that, I add "-include $osmesaprefix/include/GL/gl_mangle.h -include
$osmesaprefix/include/GL/glu_mangle.h" to the CFLAGS, so that I am certain only
the mangled versions will be used.
See the last 10 lines of my build script at
<a href="https://github.com/devernay/osmesa-install/blob/master/osmesa-install.sh#L653">https://github.com/devernay/osmesa-install/blob/master/osmesa-install.sh#L653</a>
<span class="quote">> - Is this issue specific to static linking and/or !Linux systems ? I've tried building osmesa the other day it seemed fine.</span >
Did you try building a *mangled* osmesa? This issue only happens when building
a *mangled* OSMesa on Linux, MacOS, and Windows.
Of could, you should be careful to not link with the system's opengl, or you
wont't have any undefined symbol.
Non-mangled osmesa works fine, but the HUGE advantage of mangles OSMesa is that
you can easily use both OpenGL and OSMesa in the same app.
<span class="quote">> - Do you see this problem isolated to the gallium and/or classic osmesa ?</span >
This affects all drivers using glapi, see the initial error message.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>