sdl with wayland displaying wrong colors

It seems that there’s some incompatibility beetween SDL and my weston. The thing that I’m notice is that the colors are not quite right it seems that on my embeded device I have a small color depth.
The same code runs pretty well on ubuntu.
I know that my embedded system and weston supports the 32bits color depth, because when I’m not using SDL the colors are all correct.

Any ideia of what could be happening here?

Another thing, I tried to run the SDL using drm but without any success. Maybe I’m missing something?

Thank you.