Skip to content

EGL Surface not set for foreign X11 windows #10611

@CasualPokePlayer

Description

@CasualPokePlayer

windowdata->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType)w);

It seems windowdata->egl_surface is only ever set for X11 windows created by SDL, not any foreign windows (i.e. with X11_CreateWindowFrom), preventing SDL's EGL impl from being used with foreign X11 windows.

Probably can have this surface creation just be moved to SetupWindowData?

(This issue affects both SDL3 and SDL2, but for my purposes I'd want to have this fixed in SDL2 too).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions