diff options
author | dan sinclair <dj2@everburning.com> | 2019-03-17 16:10:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-17 16:10:06 -0700 |
commit | cd446e601f40ea9931c10652974a2aec9fa7f2ff (patch) | |
tree | 5c0c6989899b4502ee24aeea1a30f1f81182d28a /src | |
parent | a6b5d1ecdbc1f6a9678df0cf668b7067af6945ba (diff) | |
download | amber-cd446e601f40ea9931c10652974a2aec9fa7f2ff.tar.gz |
[vulkan] Add missing result check (#375)
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/graphics_pipeline.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vulkan/graphics_pipeline.cc b/src/vulkan/graphics_pipeline.cc index 8684f6c..aaa4f9b 100644 --- a/src/vulkan/graphics_pipeline.cc +++ b/src/vulkan/graphics_pipeline.cc @@ -844,6 +844,8 @@ Result GraphicsPipeline::Draw(const DrawArraysCommand* command, VkPipelineLayout pipeline_layout = VK_NULL_HANDLE; r = CreateVkPipelineLayout(&pipeline_layout); + if (!r.IsSuccess()) + return r; VkPipeline pipeline = VK_NULL_HANDLE; r = CreateVkGraphicsPipeline(command->GetPipelineData(), |