Set basePipelineIndex to -1 instead of 0 to indicate invalid.
This commit is contained in:
parent
6f5f3534c4
commit
b01903ccc7
|
@ -259,7 +259,7 @@ VkPipeline PipelineCache::GetPipeline(const RenderState* render_state,
|
|||
pipeline_info.renderPass = render_state->render_pass_handle;
|
||||
pipeline_info.subpass = 0;
|
||||
pipeline_info.basePipelineHandle = nullptr;
|
||||
pipeline_info.basePipelineIndex = 0;
|
||||
pipeline_info.basePipelineIndex = -1;
|
||||
VkPipeline pipeline = nullptr;
|
||||
auto err = vkCreateGraphicsPipelines(device_, pipeline_cache_, 1,
|
||||
&pipeline_info, nullptr, &pipeline);
|
||||
|
|
Loading…
Reference in New Issue