On Thu Oct 23 14:58:28 2025 +0000, Jacek Caban wrote:
Drivers return extensions via `glGetStringi` in a different order than `glGetString`. MESA uses alphabetical order for the former and historical order for the latter (also making it possible to apply additional filters like `MESA_EXTENSION_MAX_YEAR`). If we want to preserve all that, we can't just compute that from `extension_array`, we need to apply a filter to what the driver reports. I think it could be better moved to make_context_current nonetheless, keeping the order from the host reported string if that's important while filtering it with the just built array. It would make things simpler and all located in the same place, would save counting extensions again and tracing the list twice.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9263#note_119469