   Rendering square in a long loop
  Hey guys, I have one problem...I'm rendering square in my program.It's not in Render() function. It's long loop and I use many times SwapBuffers() in this loop.When I debug this program in Visual - everything works fine. But when I made 'Relase', the square is render just for few second and then only black screen appears. I found it's happening when I use SwapBuffers too many times. But I have to use this function many times ;/You know, This function looks like a normal Render() function so I don't know why it's happening. Maybe becouse I don't get any messages from the window?Here's the function code:(I call this function when I Initialize OpenGLhttp://wklej.to/4v1Q[Edited by - Moriquendi on May 9, 2010 4:26:20 PM]