|
@@ -189,14 +189,14 @@ SDL_bool SDL_EGL_HasExtension(SDL_VideoDevice *_this, SDL_EGL_ExtensionType type
|
|
|
return SDL_FALSE;
|
|
|
}
|
|
|
|
|
|
- /* Extensions can be masked with an environment variable.
|
|
|
+ /* Extensions can be masked with a hint or environment variable.
|
|
|
* Unlike the OpenGL override, this will use the set bits of an integer
|
|
|
* to disable the extension.
|
|
|
* Bit Action
|
|
|
* 0 If set, the display extension is masked and not present to SDL.
|
|
|
* 1 If set, the client extension is masked and not present to SDL.
|
|
|
*/
|
|
|
- ext_override = SDL_getenv(ext);
|
|
|
+ ext_override = SDL_GetHint(ext);
|
|
|
if (ext_override) {
|
|
|
int disable_ext = SDL_atoi(ext_override);
|
|
|
if (disable_ext & 0x01 && type == SDL_EGL_DISPLAY_EXTENSION) {
|