<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Sep 30, 2013 at 10:11 PM, Kenney Phillis <span dir="ltr"><<a href="mailto:kphillisjr@gmail.com" target="_blank">kphillisjr@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The default handling of Extension fall backs does not work in specific<br>
cases where the list of supported extensions changes. The list of<br>
extensions for a Core profile may be different from the same<br>
context created using a Compatibility profile.<br>
<br>
V2: applied the changes suggested by Chad to improve this function.<br>
    In my previous submission of this I forgot to make note of this.<br>
    This commit changed the new function to:<br>
<br>
    piglit_gl_reinitialize_extensions<br>
---<br></blockquote></div><br><br></div><div class="gmail_extra">I think this commit and the commit for basic OpenGL handling is required since context handling and strings has been set in stone on the specification for a while, and it clearly states that the query is only valid on the current context, so when changing contexts GetString pointers become invalid.<br>
<br></div><div class="gmail_extra">OpenGL 2.0 spec - Page 253 to 254 - section 6.1.11  - States the following about GetString "returns a pointer to a static string describing some aspect of the current GL connection."<br>
<br></div><div class="gmail_extra">OpenGL 3.3 spec - Page 264 to 265 - Section 6.1.6 -  Specifically states about GetString and GetStringi"String queries return pointers to UTF-8 encoded, NULL-terminated static strings describing properties of the current GL context."<br>
<br></div><div class="gmail_extra">also as a major hint, the OpenGL ES specification uses similar wording on this function.<br></div></div>