<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Divinity: Original Sin Enhanced Edition(Native) crash on start"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93551#c35">Comment # 35</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Divinity: Original Sin Enhanced Edition(Native) crash on start"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93551">bug 93551</a>
from <span class="vcard"><a class="email" href="mailto:darktjm@gmail.com" title="Thomas J. Moore <darktjm@gmail.com>"> <span class="fn">Thomas J. Moore</span></a>
</span></b>
<pre>(In reply to Mikhail Korolev from <a href="show_bug.cgi?id=93551#c33">comment #33</a>)
> Your code calls dlsym at every call of glGetString/glXGetProcAddressARB
<span class="quote">> instead of call it only at startup.</span >
If so, your version of gcc is broken. Just in case my gcc is broken as well, I
checked with gdb and the lines of code executing dlsym are executed exactly
once, while the wrappers themselves are called more than once. The only error
I can see on reviewing my code is that I misspelled Enhanced, which is not
worth correcting. That's not to say my code is perfect, though.
<span class="quote">> Fix in attachments.</span >
If you say so. Thanks for trying, at least. Seems more complex to me with
little benefit (the benefit being no longer executing the NULL check every
call, which probably takes a few nanoseconds). In fact, using _init like that
makes me uncomfortable, since the time of symbol resolution is less obvious.
If it works, it works, though.
(In reply to Mikhail Korolev from <a href="show_bug.cgi?id=93551#c33">comment #33</a>)
<span class="quote">> As for vendor check location:</span >
Thanks. I guess what I really meant to say is that I no longer have the
patience and dedication needed to properly reverse engineer and provide patches
for the code. Last time I did that was over 20 years ago
(<a href="http://aminet.net/package/disk/misc/cdfix">http://aminet.net/package/disk/misc/cdfix</a>).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>