summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-02-09 13:57:23 -0700
committerBrian Paul <brianp@vmware.com>2009-02-09 13:57:23 -0700
commita4b975ddd08d59b2bea135b4f1a28ca32f079b2d (patch)
tree9342fdc19ac59b5c2e37e7c03ce4b5385028e77a /tests
parentc767fd98818de97d648f66c609eaed5fa7570755 (diff)
more debug/fail info, added comment
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/tex1d-2dborder.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/bugs/tex1d-2dborder.c b/tests/bugs/tex1d-2dborder.c
index 03b953918..0bb54ae06 100644
--- a/tests/bugs/tex1d-2dborder.c
+++ b/tests/bugs/tex1d-2dborder.c
@@ -71,7 +71,7 @@ static void test(GLenum wrapt, int cellx, int celly)
int y = (celly*5 + sy + 1)*Height/10;
if (!piglit_probe_pixel_rgb(x, y, TextureColor)) {
- fprintf(stderr, "Fail in cell %i,%i\n", cellx, celly);
+ fprintf(stderr, "Fail in cell %i,%i (texwrap % = 0x%x)\n", cellx, celly, wrapt);
if (Automatic)
piglit_report_result(PIGLIT_FAILURE);
@@ -87,6 +87,9 @@ static void Redisplay(void)
glClearColor(0.5, 0.5, 0.5, 1.0);
glClear(GL_COLOR_BUFFER_BIT);
+ /* Draw eight tiles, each with a different tex wrap mode.
+ * They should all look the same.
+ */
test(GL_REPEAT, 0, 0);
test(GL_CLAMP, 1, 0);
test(GL_CLAMP_TO_EDGE, 2, 0);