turns out it was a problem with the draw color idk why but it worked when i tried setting the draw color to black before SDL_RenderClear()