mesa: remove unnecessary 'sort by year' for the GL extensions
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 25 Oct 2017 10:33:09 +0000 (11:33 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 16 Nov 2017 14:07:14 +0000 (14:07 +0000)
commit3d81e11b49366b5636b8524ba0f8c7076e3fdf34
tree1369aac5e6e16582ded76a600fb344a970fd5e9e
parenta3f82876f4471b88158074766c6115e15642d734
mesa: remove unnecessary 'sort by year' for the GL extensions

The sorting was originally added to work around broken games (comment
says Quake3 demo) that were copying the extensions list into small
buffer.

Sorting does not solve the problem, since we'll still overflow and cause
corruption/crash.

Better workaround is to actually trim the string ... as done with a
later commit which introduces the MESA_EXTENSION_MAX_YEAR env. variable.

Side note: On my machine, the existing sorting makes no changes to the
extensions string.

Cc: Jose Fonseca <jfonseca@vmware.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/extensions.c