Commit 9fc59f0f authored by Eric Anholt's avatar Eric Anholt

lodbias: Don't swapbuffers in automatic mode.

Reduces runtime from 25s to 3s on my system.
parent 36bbcd1d
......@@ -143,7 +143,8 @@ test_simple(int bias1, int bias2)
pass = test_simple_texture(1, bias2) && pass;
glDisable(GL_TEXTURE_2D);
glutSwapBuffers();
if (!piglit_automatic)
glutSwapBuffers();
return pass;
}
......@@ -218,7 +219,8 @@ test_multitex(int bias1, int bias2)
glActiveTexture(GL_TEXTURE0);
glDisable(GL_TEXTURE_2D);
glutSwapBuffers();
if (!piglit_automatic)
glutSwapBuffers();
return pass;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment