aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-25 16:55:23 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-25 17:15:47 -0700
commitc0f35182273a51cbca1274648155fda2c5214ce2 (patch)
treec8f1662215d7e2af2a10a8d67e3ff2c8ec58b2a6
parent4d1acf1dd38a1555ea97c6a6d41735d63f3dc036 (diff)
downloadusermoji-c0f35182273a51cbca1274648155fda2c5214ce2.tar.xz
demos: Clean up objects after cmd buf built
-rw-r--r--demos/tri.c3
1 files changed, 3 insertions, 0 deletions
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)