Sam Lantinga
Sam Lantinga
In general we can't control leaks in other libraries and we shouldn't be doing gyrations to avoid them. Anyone who finds those leaks while investigating them in SDL can report...
@ProgrammingRainbow, the memory leaks are much improved in the latest main code for sdl2-compat and SDL3. I tested on Ubuntu 24.04 using X11 and XWayland, and these were my results:...
Just for grins I ran both SDL2 and sdl2-compat using `SDL_VIDEODRIVER=wayland` and got a ton of memory leaks outside SDL, as expected. SDL2: ``` ~/projects/Yellow-Snow-Cpp-SDL2$ SDL_VIDEODRIVER=wayland ./yellow-snow ... SUMMARY: AddressSanitizer:...
Just for fun I wanted to see how many of the Wayland leaks were from SDL itself. I created a file `asan-third-party.txt` with the contents: ``` leak:fontconfig leak:libdecor ``` This...
I'm able to reproduce this. SDL_Quit() isn't called, but no leaks are reported. Oddly, if I add an intentional leak in SDL.c, that gets reported properly.
Originally was uppercase, but I don't have a strong preference at this point.
The copyright on every file uses "Simple DirectMedia Layer", so I fixed the repository metadata. Thanks!
No, we use the SDF support built into FreeType, however we'll accept a well written PR that adds MSDF support.
It would be an extra option. SDF just uses the alpha channel, while MSDF uses the full set of RGBA channels, so it's a different data format and requires different...
In case you're interested, we added a demo of MSDF font support to SDL: https://github.com/libsdl-org/SDL/blob/main/test/testgpurender_msdf.c