I keep getting a visual glitch where the texture loads with the top line of pixels at the bottom. This will flash every few frames, with the image rendering normally most of the time. I wrote code to jump automatically, and when I step through the code frame by frame, the glitches are in consistent spots. Any thoughts/help would be appreciated!
I tried the code from the class, and it does the same thing.
I noticed when I set the texture rectangle to start at y=1 as opposed to y=0, it produces the same glitched image.
It doesn’t happen when I keep the image static, only when each frame is rendered in a different spot.
You can see what the glitch looks like below: