I am trying to build an SDL2 project as a libretro core and I have managed to get it to work successfully with an SDL2 software renderer, but it runs very slowly. If I build the application as an executale and run it, then the hardware renderer works fine, but if I build it as a library for libretro, then it can’t render textures.
I have created a minimal example to demonstrate this, the source code is here.
Build and run both the libretro core and the executable, and you will see the exe runs fine, but the libretro core only clears the screen, but doesn’t draw the texture.
Then change the USE_HARDWARE flag here to false and then run the libretro core and the executable, and you will see that both now work perfectly.
Is there anyonw who has experience with Libretro and SDL2 that can advise me?