static void
RunTest(GLboolean copyTex, GLboolean doSubRect)
{
- double t1, t0 = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
+ double t0, t1;
int iters = 0;
float copyRate, mbRate;
float rot = 0.0;
glEnable(GL_TEXTURE_2D);
glViewport(WinWidth / 2, 0, WinWidth / 2, WinHeight);
+ t0 = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
+
do {
if (copyTex)
/* Framebuffer -> Texture */
rot += 2.0;
t1 = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
- glutSwapBuffers();
+ if (DrawQuad) {
+ glutSwapBuffers();
+ }
} while (t1 - t0 < 5.0);
glDisable(GL_TEXTURE_2D);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
DrawTestImage();
+ if (!DrawQuad) {
+ glutSwapBuffers();
+ }
RunTest(GL_FALSE, GL_FALSE);
RunTest(GL_FALSE, GL_TRUE);