On Mon, Sep 30, 2013 at 10:11 PM, Kenney Phillis <[email protected]>wrote:

> The default handling of Extension fall backs does not work in specific
> cases where the list of supported extensions changes. The list of
> extensions for a Core profile may be different from the same
> context created using a Compatibility profile.
>
> V2: applied the changes suggested by Chad to improve this function.
>     In my previous submission of this I forgot to make note of this.
>     This commit changed the new function to:
>
>     piglit_gl_reinitialize_extensions
> ---
>


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.

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."

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."

also as a major hint, the OpenGL ES specification uses similar wording on
this function.
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to