Merge pull request #467 from jherico/upstream

Remove dead code from tessellation example
This commit is contained in:
Sascha Willems 2018-04-27 17:59:43 +02:00 committed by GitHub
commit b69f202b46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,8 +76,6 @@ public:
VkPipeline solidPassThrough; VkPipeline solidPassThrough;
VkPipeline wirePassThrough = VK_NULL_HANDLE; VkPipeline wirePassThrough = VK_NULL_HANDLE;
} pipelines; } pipelines;
VkPipeline *pipelineLeft = &pipelines.wirePassThrough;
VkPipeline *pipelineRight = &pipelines.wire;
VkPipelineLayout pipelineLayout; VkPipelineLayout pipelineLayout;
VkDescriptorSet descriptorSet; VkDescriptorSet descriptorSet;
@ -535,22 +533,6 @@ public:
updateUniformBuffers(); updateUniformBuffers();
} }
void togglePipelines()
{
if (pipelineRight == &pipelines.solid)
{
pipelineRight = &pipelines.wire;
pipelineLeft = &pipelines.wirePassThrough;
}
else
{
pipelineRight = &pipelines.solid;
pipelineLeft = &pipelines.solidPassThrough;
}
buildCommandBuffers();
}
virtual void OnUpdateUIOverlay(vks::UIOverlay *overlay) virtual void OnUpdateUIOverlay(vks::UIOverlay *overlay)
{ {
if (overlay->header("Settings")) { if (overlay->header("Settings")) {