libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.45k stars 1.76k forks source link

Rendertarget is rendering incorrectly on psvita. #5844

Closed baiXfeng closed 2 years ago

baiXfeng commented 2 years ago

@isage I compiled with the latest version of the sdl library and it does not render the rendertarget correctly on psvita, I have created a project to restore this problem. https://github.com/baiXfeng/sdl2-test

isage commented 2 years ago

I'll take a look. It looks like texture format conversion problem, with SDL_PIXELFORMAT_ABGR8888 for rendertarget everything works fine, because we use SCE_GXM_COLOR_FORMAT_A8B8G8R8 for sceGxmColorSurfaceInit (which is vita'a analogue of render target texture).