From c0f35182273a51cbca1274648155fda2c5214ce2 Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Wed, 25 Feb 2015 16:55:23 -0700 Subject: demos: Clean up objects after cmd buf built --- demos/tri.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demos/tri.c b/demos/tri.c index 2f5603da..6a1e2923 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -194,6 +194,9 @@ static void demo_draw_build_cmd(struct demo *demo) err = xglEndCommandBuffer(demo->cmd); assert(!err); + + xglDestroyObject(graphics_cmd_buf_info.renderPass); + xglDestroyObject(rp_info.framebuffer); } static void demo_draw(struct demo *demo) -- cgit v1.2.3