Here’s how it goes if I use Hardware acceleration. I believe there’s no mistakes in my code as it can run perfectly if I use SDL_RENDERER_SOFTWARE