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_N
On 2024/10/15 13:32, Dmitry Osipenko wrote:
From: Pierre-Eric Pelloux-Prayer
If EGL is used, we can rely on dmabuf to import textures without
doing copies.
To get this working on X11, we use the existing SDL hint:
SDL_HINT_VIDEO_X11_FORCE_EGL (because dmabuf can't be used with GLX).
Signed-of
From: Pierre-Eric Pelloux-Prayer
If EGL is used, we can rely on dmabuf to import textures without
doing copies.
To get this working on X11, we use the existing SDL hint:
SDL_HINT_VIDEO_X11_FORCE_EGL (because dmabuf can't be used with GLX).
Signed-off-by: Pierre-Eric Pelloux-Prayer
Signed-off-b