SDL_HideWindow breaks SDL_RenderReadPixels() and/or SDL_RenderCopyEx, which breaks accelerated off-screen rendering for applications that don’t want to present any sort of dedicated UI to the user, e.g. web backends.
The result is that on a hidden window, SDL_RenderReadPixels() will only return a black texture instead of the actual supposed proper contents, and it works fine as soon as the window is not hidden.
Since I use a lot of off-screen rendering in a backend and wanted to use SDL2 for this, it would be really nice if someone could look into this.
Here is the relevant ticket: https://bugzilla.libsdl.org/show_bug.cgi?id=3928