[Mesa-dev] GLSL versions that don't match GL versions

Marek Olšák maraeo at gmail.com
Mon Apr 27 03:09:45 PDT 2015


It sounds good.

Marek

On Mon, Apr 27, 2015 at 2:58 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Hello,
>
> Right now a driver has to be very careful about the GLSL version it
> exposes, since it's computed separately from the GL version. The
> main/version.c:compute_version code uses the consts->GLSLVersion as an
> input, would there be any downside to having it also fix up the GLSL
> version as well? For example, if I advertise a GLSLVersion 400, but
> I'm missing, e.g., tess, or subroutines, or whatever, and the GL
> version goes down to 3.3, is there any harm in fixing it up to be 330?
>
> Among other things, _mesa_get_version does this for compat contexts,
> so I guess it should be OK?
>
>   -ilia
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list