For the past week I've been porting a simple Java program over to thinBasic. It's nothing impressive, it just draws an image on the screen. The pseudo code for the drawing routine looks much like the following.

For x = 1 To %winWidth
  
  For y = 1 To %winHeight
  
  Next
  
  TBGL_DrawFrame

Next
I've placed TBGL_DrawFrame between the two Next commands so that the User can see the image being drawn on the screen, however as it's being drawn it flickers quite badly. The ways that I've found to overcome this are to use glDrawBuffer(%GL_FRONT_AND_BACK) or use glDrawBuffer(%GL_FRONT) and glFlush().

Is there a TBGL way of overcoming the flickering without resorting to native OpenGL commands?