[Mesa-dev] [PATCH 2/2] st/wgl: Implement WGL_EXT_create_context_es/es2_profile.
Brian Paul
brianp at vmware.com
Fri Nov 14 11:45:45 PST 2014
On 11/14/2014 12:44 PM, Jose Fonseca wrote:
>> I'd probably put the version checking logic into a helper function, but
>> not a big deal.
>
> Any suggestion to where put such helper? I'm searching but I'm not confident where's the best place to put it so that it can be used everywhere.
>
> Would src/mesa/main/version.[ch] be ok? This would at least be good enough for st/glx and st/wgl. Like:
>
> boolean
> _mesa_is_valid_opengl_version(int major, int minor)
>
> boolean
> _mesa_is_valid_opengl_es_version()
>
Yeah, I'd put it in version.[ch]
-Brian
More information about the mesa-dev
mailing list