From 8085395acc28d8c77901615f8862ceeda5773b09 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 4 Jul 2009 21:53:55 +0000 Subject: New interface for optimizing canvas conversions by registering dmnsn_set_pixel() callbacks. --- tests/gl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/gl.c') diff --git a/tests/gl.c b/tests/gl.c index 5b291f6..b1839a4 100644 --- a/tests/gl.c +++ b/tests/gl.c @@ -40,6 +40,12 @@ main() { return EXIT_FAILURE; } + if (dmnsn_gl_optimize_canvas(scene->canvas) != 0) { + dmnsn_delete_default_scene(scene); + fprintf(stderr, "--- Couldn't optimize canvas for GL! ---\n"); + return EXIT_FAILURE; + } + dmnsn_array_get(scene->objects, 0, &sphere); dmnsn_array_get(scene->objects, 1, &cube); trans = dmnsn_get_perspective_camera_trans(scene->camera); -- cgit v1.2.3