On 10/18/24 08:22, Akihiko Odaki wrote:
...
>> +    EGLDisplay egl_display;
>> +
>> +    if (!x_disp) {
>> +        return;
>> +    }
>> +
>> +    /* Prefer EGL over GLX to get dma-buf support. */
>> +    egl_display = eglGetDisplay((EGLNativeDisplayType)x_disp);
>> +> +    if (egl_display != EGL_NO_DISPLAY) {
>> +        SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1");
> 
> SDL may not be going to use X11 but may use e.g., Wayland.

SDL uses this hint only within the X11 code, i.e. setting the hint
doesn't make SDL to use X11 instead of Wayland.

-- 
Best regards,
Dmitry

Reply via email to