Fix crash when trying to load scene editor on Vulkan
This commit is contained in:
parent
2ddc1e1794
commit
fcc3917155
1 changed files with 5 additions and 3 deletions
|
@ -1168,10 +1168,12 @@ void GFXVulkan::submit(GFXCommandBuffer* command_buffer, const int identifier) {
|
|||
case GFXCommandType::SetGraphicsPipeline:
|
||||
{
|
||||
currentPipeline = (GFXVulkanPipeline*)command.data.set_graphics_pipeline.pipeline;
|
||||
vkCmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, currentPipeline->handle);
|
||||
if(currentPipeline != nullptr) {
|
||||
vkCmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, currentPipeline->handle);
|
||||
|
||||
resetDescriptorState();
|
||||
lastDescriptorHash = 0;
|
||||
resetDescriptorState();
|
||||
lastDescriptorHash = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case GFXCommandType::SetVertexBuffer:
|
||||
|
|
Reference in a new issue