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 0ebbf997c7efe9ce74d5a332fe565a9dab1478aa..287929086b0ef5d17f5a3576be007fdb29519889 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);
 }