Skip to content

PulseAudio backend completely breaks OpenGL rendering #12986

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

Closed
rainerdeyke opened this issue May 7, 2025 · 1 comment
Closed

PulseAudio backend completely breaks OpenGL rendering #12986

rainerdeyke opened this issue May 7, 2025 · 1 comment
Assignees
Milestone

Comments

@rainerdeyke
Copy link

rainerdeyke commented May 7, 2025

I have noticed a serious regression in SDL 3.2.12 that completely breaks OpenGL rendering. I am now getting a completely black window in my project that was previously working correctly. I have traced this to the function SDL_OpenAudioDeviceStream and further to commit c6dd266. My hypothesis is that one of these callbacks that now call SDL_CleanupTLS is being executed in a thread that holds OpenGL state in TLS, causing the OpenGL state to be clobbered.

@icculus icculus self-assigned this May 8, 2025
@icculus icculus added this to the 3.2.14 milestone May 8, 2025
@Kontrabant
Copy link
Contributor

slouken pushed a commit that referenced this issue May 11, 2025
…oop callback."

This reverts commit 3b91017.

This apparently is cleaning up more threads than expected, so this needs a
rethink.

Fixes #12986.
Fixes libsdl-org/sdl2-compat#486
Fixes libsdl-org/sdl2-compat#482

(cherry picked from commit e1066ce)
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