Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EGL Surface not set for foreign X11 windows #10611

Open
CasualPokePlayer opened this issue Aug 28, 2024 · 0 comments
Open

EGL Surface not set for foreign X11 windows #10611

CasualPokePlayer opened this issue Aug 28, 2024 · 0 comments
Assignees
Milestone

Comments

@CasualPokePlayer
Copy link

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).

CasualPokePlayer added a commit to CasualPokePlayer/SDL that referenced this issue Aug 31, 2024
Also slightly changes up the cleanup code for SetupWindowData, to avoid copy pasting.

See libsdl-org#10611
@slouken slouken added this to the 3.2.0 milestone Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants