Stale texture data and flicker in small SDL2 program
Video of bug: https://youtu.be/O0__VNN9G_o
At 0:11 in the video you see old web browser data showing up in my program.
At 0:19 when I close a window in my program the texture for my piano key letters flicker. By luck the texture for my keys sometimes flickers to stuff previously displayed on my desktop. This flickering is linked to my mouse movement/placement.
When I run my program with the proprietary 440 NVIDIA driver things work fine. It also works fine with the opensource Intel video driver on a different computer. I am on Ubuntu budgie 20.04 using XFCE on X.org X11.
The SDL2 program source:
git hash 553bb6c8ca18b23494a6c92f4551baa1649f0374