aboutsummaryrefslogtreecommitdiff
path: root/tests/texturing
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-09-05 06:50:12 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-10-09 17:35:41 -0700
commit6ff0ee8039c6aceca1a8f9066d333f73aab1d468 (patch)
tree4458b35b0a748c9602cf8332afc3bb4d5a84dd64 /tests/texturing
parent54a5e50c4448777a05035372fe83c1ccfd734ddb (diff)
tests,util: Wrap glutPostRedisplay with piglit_post_redisplay
I'm trying to transition Piglit from using GLUT to using Waffle. This requires killing all uses of GLUT functions, one-by-one. This patch replaces all-but-one instance of glutPostRedisplay with a new wrapper, piglit_post_redisplay. The sole remaining test that uses glutPostRedisplay is windowoverlap; but that test doesn't use piglit-framework, anyway. Since piglit_escape_exit_key() calls piglit_post_redisplay() which is defined in piglitutil_gl*, we must now link piglitutil_gl into piglitglxutil to prevent link errors. Acked-by: Eric Anholt <eric@anholt.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> Tested-by: Paul Berry <stereotype441@gmail.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/texturing')
-rw-r--r--tests/texturing/lodbias.c2
-rw-r--r--tests/texturing/texdepth.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/texturing/lodbias.c b/tests/texturing/lodbias.c
index bc13e4e0..838c075f 100644
--- a/tests/texturing/lodbias.c
+++ b/tests/texturing/lodbias.c
@@ -289,7 +289,7 @@ static void Key(unsigned char key, int x, int y)
break;
}
printf("Current LOD bias: 1st tex: %i 2nd tex: %i\n", CurrentBias, CurrentBias2);
- glutPostRedisplay();
+ piglit_post_redisplay();
}
void
diff --git a/tests/texturing/texdepth.c b/tests/texturing/texdepth.c
index a655ef07..9111b353 100644
--- a/tests/texturing/texdepth.c
+++ b/tests/texturing/texdepth.c
@@ -365,7 +365,7 @@ static void Key(unsigned char key, int x, int y)
exit(0);
break;
}
- glutPostRedisplay();
+ piglit_post_redisplay();
}
void