I make my window resizeable and i let SDL scale the output window. On my raspberry pi 4 with the opengl driver enabled and when using hardware acceleration, when i resize my window, the previous graphics of how my game was running before remain visible instead of showing black. I also tested software renderer but i can not reproduce it using the software renderer. Is there anyway to “clear” those faulty graphics after i have resized my window?
I’m talking about this