When I run my game and SDL_GL_SwapBuffers(); every frame of mario sprite which you can see in this the hole video
<object width="425" height="350"> <param name="movie" value="http://www.youtube.com/v/XjJWidr3pBY"></param> <param name="wmode" value="transparent"></param> <embed src="http://www.youtube.com/v/XjJWidr3pBY" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"> </embed></object>
the screen flickers black and I really need that to stop and I don't know how too keep redrawing the scene without it crashing the application because of a While Loop
I have ideas to use another thread and put a while loop in there maybe that may stop the crashing but cause a crash because of too much of the same thing happening I don't know but I really need someone to help me out here please