cube: Set pipeline renderpass
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 13 Aug 2015 22:55:04 +0000 (16:55 -0600)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Mon, 17 Aug 2015 15:51:23 +0000 (09:51 -0600)
LunarXchange issue #111:
https://vulkan.lunarg.com/app/issues/55cbc6d77ef24d0001000001
noticed that the pipeline's renaderPass was not being set.

demos/cube.c

index 0d0dff2..662f31c 100644 (file)
@@ -1647,6 +1647,8 @@ static void demo_prepare_pipeline(struct demo *demo)
     pipeline.pStages             = shaderStages;
     pipeline.renderPass          = demo->render_pass;
 
+    pipeline.renderPass = demo->render_pass;
+
     err = vkCreateGraphicsPipelines(demo->device, demo->pipelineCache, 1, &pipeline, &demo->pipeline);
     assert(!err);