<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ARB_shading_language_include is not implemented"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95215#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ARB_shading_language_include is not implemented"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95215">bug 95215</a>
              from <span class="vcard"><a class="email" href="mailto:jamey@minilop.net" title="Jamey Sharp <jamey@minilop.net>"> <span class="fn">Jamey Sharp</span></a>
</span></b>
        <pre>(In reply to Ilia Mirkin from <a href="show_bug.cgi?id=95215#c1">comment #1</a>)
<span class="quote">> Sounds like the game is buggy and needs fixing - I presume it runs fine on
> Catalyst drivers, which also don't support the ext.</span >

Hmm. Is apitrace mis-leading us here?

`nm -D` tells me that the only uses of NamedStringARB are in libOGLBinding.so,
shipped with the game. Specifically it uses the __glewNamedStringARB function
pointer.

`readelf --relocs libOGLBinding.so | grep __glewNamedStringARB` tells me the
address of that function pointer is written to offset 29c68, which I find used
twice in `objdump -d libOGLBinding.so`.

In both cases, the following instructions check that the function pointer is
not null. Inside `api::OpenGLRenderer::CreateShader(ls::ObjectHandle)`, if the
function pointer is null, it calls
`api::OpenGLRenderer::EmbedIncludes(ls::STDString&)`, which sounds sensible.
Inside `api::OpenGLRenderer::CreateShader(ls::ObjectHandle)` the fallback goes
to a function that isn't in the symbol table, but it does a bunch of string
manipulation so I'm going to guess it's probably similar.

So: Does apitrace make __glewNamedStringARB non-null even when the function
isn't available in the underlying driver? If so, then we're following a
different code path in the game when we trace it. If that's the case, then this
bug has nothing to do with any remaining rendering issues, but it would be nice
to know how to make apitrace not do that so we can find real bugs.</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>