Revert "mesa: remove unnecessary 'sort by year' for the GL extensions"
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 24 Sep 2018 15:01:38 +0000 (16:01 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 3 Oct 2018 12:38:06 +0000 (13:38 +0100)
commitfe8be81b4a525fec355e2f80c254711981ce0dbd
tree490903b4c42d903328a18a47c55fefbda7432d59
parent91ff8b1dd9bb5fe605d30e61dc4d8b69e391c0c8
Revert "mesa: remove unnecessary 'sort by year' for the GL extensions"

This reverts commit 3d81e11b49366b5636b8524ba0f8c7076e3fdf34.

As reported by Federico, some games require the 'sort by year' since
they truncate the extensions which do not fit the fixed size string
array.

Seemingly I did not consider that, as the documentation (both Mesa and
Nvidia) mentions about program crashes ... which are worked around by
setting the env. variable.

This commit reinstates the workaround and enhances the documentation.

Cc: Marek Olšák <maraeo@gmail.com>
Cc: Ian Romanick <idr@freedesktop.org>
Reported-by: Federico Dossena <info@fdossena.com>
Fixes: 3d81e11b493 ("mesa: remove unnecessary 'sort by year' for the GL
extensions")
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Tested-by: Federico Dossena <info@fdossena.com>
src/mesa/main/extensions.c