|
@@ -526,7 +526,9 @@ SDL_EGL_LoadLibrary(_THIS, const char *egl_path, NativeDisplayType native_displa
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
/* Try the implementation-specific eglGetDisplay even if eglGetPlatformDisplay fails */
|
|
/* Try the implementation-specific eglGetDisplay even if eglGetPlatformDisplay fails */
|
|
- if ((_this->egl_data->egl_display == EGL_NO_DISPLAY) && (_this->egl_data->eglGetDisplay != NULL)) {
|
|
|
|
|
|
+ if ((_this->egl_data->egl_display == EGL_NO_DISPLAY) &&
|
|
|
|
+ (_this->egl_data->eglGetDisplay != NULL) &&
|
|
|
|
+ SDL_GetHintBoolean(SDL_HINT_VIDEO_EGL_ALLOW_GETDISPLAY_FALLBACK, SDL_TRUE)) {
|
|
_this->egl_data->egl_display = _this->egl_data->eglGetDisplay(native_display);
|
|
_this->egl_data->egl_display = _this->egl_data->eglGetDisplay(native_display);
|
|
}
|
|
}
|
|
if (_this->egl_data->egl_display == EGL_NO_DISPLAY) {
|
|
if (_this->egl_data->egl_display == EGL_NO_DISPLAY) {
|