aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-25 17:53:18 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-27 14:50:22 -0700
commit94901dc385eb193712a89eee4fca262fd91fbb17 (patch)
tree2bbddadd52d7d0219d38d1c7b0a5156218c99918
parent20ef85442aad9ed61986608ac041b4c95a83352a (diff)
downloadusermoji-94901dc385eb193712a89eee4fca262fd91fbb17.tar.xz
demos: Clean up renderpass and framebuffer
-rw-r--r--demos/cube.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/cube.c b/demos/cube.c
index 0ebbf997..28792908 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -358,6 +358,9 @@ static void demo_draw_build_cmd(struct demo *demo, XGL_CMD_BUFFER cmd_buf)
err = xglEndCommandBuffer(cmd_buf);
assert(!err);
+
+ xglDestroyObject(graphics_cmd_buf_info.renderPass);
+ xglDestroyObject(rp_info.framebuffer);
}