diff options
author | Eric Anholt <eric@anholt.net> | 2013-02-26 11:39:45 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-05-03 15:07:34 -0700 |
commit | 6f7e95fa75e68e5a935a5d29219acab5dab4516f (patch) | |
tree | 5e85aea1d576f9d4196e3824901690c575e99065 | |
parent | 2f33dcab254112312f4f0923d93252494159313d (diff) |
depthstencil-render-miplevels: Move the rendering to display() time.
I want to actually present results on the screen so that debugging
this test involves less meditation before achieving enlightenment.
Reviewed-by: Paul Berry <stereotype441@gmail.com>
-rw-r--r-- | tests/texturing/depthstencil-render-miplevels.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/texturing/depthstencil-render-miplevels.cpp b/tests/texturing/depthstencil-render-miplevels.cpp index 73ae8ac19..a4e1249d4 100644 --- a/tests/texturing/depthstencil-render-miplevels.cpp +++ b/tests/texturing/depthstencil-render-miplevels.cpp @@ -415,7 +415,11 @@ piglit_init(int argc, char **argv) } else { print_usage_and_exit(argv[0]); } +} +extern "C" enum piglit_result +piglit_display() +{ bool pass = true; color_tex = create_mipmapped_tex(GL_RGBA); @@ -454,14 +458,7 @@ piglit_init(int argc, char **argv) pass = test_miplevel(level) && pass; } - piglit_report_result(pass ? PIGLIT_PASS : PIGLIT_FAIL); -} - -extern "C" enum piglit_result -piglit_display() -{ - /* Should never be reached */ - return PIGLIT_FAIL; + return pass ? PIGLIT_PASS : PIGLIT_FAIL; } }; /* Anonymous namespace */ |