aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}