demos: remove an extraneous vkCmdBeginRenderPass()
authorChia-I Wu <olv@lunarg.com>
Wed, 8 Jul 2015 05:56:49 +0000 (13:56 +0800)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Fri, 17 Jul 2015 16:05:17 +0000 (10:05 -0600)
demos/cube.c
demos/tri.c

index 272b3e5d6cb2d0c37ec3fd6cfc317b0d13b7ccb8..765734bcb6abce4651e0a66010c449edc2e3d6c2 100644 (file)
@@ -551,8 +551,6 @@ static void demo_draw_build_cmd(struct demo *demo, VkCmdBuffer cmd_buf)
     vkCmdBindDynamicStateObject(cmd_buf, VK_STATE_BIND_POINT_DEPTH_STENCIL,
                                      demo->depth_stencil);
 
-    vkCmdBeginRenderPass(cmd_buf, &rp_begin);
-
     vkCmdDraw(cmd_buf, 0, 12 * 3, 0, 1);
     vkCmdEndRenderPass(cmd_buf);
 
index 8297135bab2d20ef1269bef55d61990f83ccf7f0..a2ff31b2f5b3309a2b497c7c9e0fa7f0bd1268c6 100644 (file)
@@ -394,8 +394,6 @@ static void demo_draw_build_cmd(struct demo *demo)
     VkDeviceSize offsets[1] = {0};
     vkCmdBindVertexBuffers(demo->draw_cmd, VERTEX_BUFFER_BIND_ID, 1, &demo->vertices.buf, offsets);
 
-    vkCmdBeginRenderPass(demo->draw_cmd, &rp_begin);
-
     vkCmdDraw(demo->draw_cmd, 0, 3, 0, 1);
     vkCmdEndRenderPass(demo->draw_cmd);