demos: Clean up renderpass and framebuffer
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 26 Feb 2015 00:53:18 +0000 (17:53 -0700)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Fri, 27 Feb 2015 21:50:22 +0000 (14:50 -0700)
demos/cube.c

index 0ebbf99..2879290 100644 (file)
@@ -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);
 }