SDL_LoadBMP_IO regression?

I ported a little game to SDL3 and stumbled across some problems. And I think they are bugs in SDL3.

Some of my images don’t load correctly. There are no error messages, but the images were distorted, largely black. They were 4-bit images (ie. up to 16 colors) and RLE compressed. The problematic images had an odd width. So I think there may be a bug with handling the end of a scanline. Those files still worked with SDL2.

As a workaround I stored those uncompressed. Then it works. But of course the images are now even larger. Well, RLE compression is weak, but in my case it was worth it. And it should be a little game.

Then I tried to port it to wasm with emscripten. (A major rewrite was necessary.) But now I have the next problem. Some important images don’t show up at all. Loading works without a reported error. But SDL_RenderTexture then returns false and I get the message “Texture doesn’t have a palette”.

I think those are bugs in SDL. I don’t know whether they are related.

They do sound like bugs. Can you report them with sample images attached at:
Issues · libsdl-org/SDL