Announcing the sdl2-compat official release!

Want the joy of SDL3 but are stuck using SDL2? … we’ve got you covered!

This code is a compatibility layer, providing a binary and source compatible API for programs written against SDL2, but it uses SDL3 behind the scenes.

Check it out at:

4 Likes

A minor update with bug fixes has been released:

Arch Linux replaced their SDL2 package with sdl2-compat and we got lots of great feedback!

This is a quick update with the following improvements:

  • Fixed a black screen in some applications, including Source 1 games
  • Fixed loud garbled audio in some applications, including Source 1 games and DOSBox
  • Fixed audio crackling and potential related crashing in some applications, including vkQuake
  • Fixed opening the main window in ffplay
  • Fixed fullscreen window size when running some games like Meat Boy on Wayland with fractional scaling enabled
  • Fixed keyboard input in Super Meat Boy
  • Fixed mouse motion while the mouse is grabbed
  • Fixed a crash in AntimicroX
  • Fixed building applications that expect SDL to provide standard C headers
  • Added support for the original Torchlight on Linux, which shipped using a pre-release SDL 2.0 library

If you were running into problems with sdl2-compat, please update to this release along with SDL 3.2.2 and let us know if you’re still having issues:

1 Like

A minor update with bug fixes has been released: