I read that SDL2 on Raspberry Pi work only locally (do not start via ssh/Xtunnel).
I checked the supplied version and is 2.0.14 on both RaspberryOS (32bit) and Raspbian (64bit), and seems true, if I run locally start OK, while running via ssh I got this error:
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 130 (MIT-SHM)
Minor opcode of failed request: 1 (X_ShmAttach)
Serial number of failed request: 202
Current serial number in output stream: 203
Following suggestion in RISC-V thread, I tryed to set: SDL_VIDEODRIVER to directfb | wayland | kmsdrm
without success. With all It say SDL_CreateWindow Error: wayland not available
or directfb | kmsdrm
What is the reason SDL2 on Raspberry (3B+ in my case) do not work via x11 ?