Some old applications crash if GL_EXTENSIONS string is longer than a certain limit. There are some vendor-specific environment variable to limit the returned extensions, but it is IMO less convenient to use than a per-application registry setting which can be set once on prefix configuration time. We have a DisabledExtensions registry key already, this adds a similar EnabledExtensions key that filters the returned extensions to only include those listed in that key, effectively limiting the size of the extensions string. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=25362 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58422 -- v2: opengl32: Add an EnabledExtensions registry option. opengl32: Add a helper to read OpenGL registry options. opengl32: Do not filter legacy extensions. https://gitlab.winehq.org/wine/wine/-/merge_requests/8473