Yep. Yep. Yep.
Thanks fellas!
Two more things
You might move your swapbuffers outside the if/then so:
That works, but if I put my clear to the beginning of my while statement and before my if/thens, it causes a flicker. froze my box once. I move it to the begining of my if/then where things are drawn, it works fine, no flicker.
Also, when I draw a 720*480 image it's fine, but if I use a 1280*720 image, it goes black, and eventually freezes my box (while playing video). I assume that's a memory issue. Is there a way to look at how much memory is being used and what's available? That would help me out in determining what image sizes I can use and when I'm running out of memory.