aboutsummaryrefslogtreecommitdiff
path: root/src/vulkan/graphics_pipeline.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan/graphics_pipeline.cc')
-rw-r--r--src/vulkan/graphics_pipeline.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/vulkan/graphics_pipeline.cc b/src/vulkan/graphics_pipeline.cc
index 3244f31..08add8a 100644
--- a/src/vulkan/graphics_pipeline.cc
+++ b/src/vulkan/graphics_pipeline.cc
@@ -822,15 +822,7 @@ Result GraphicsPipeline::ClearBuffer(const VkClearValue& clear_value,
Result GraphicsPipeline::Draw(const DrawArraysCommand* command,
VertexBuffer* vertex_buffer) {
- Result r = command_->BeginIfNotInRecording();
- if (!r.IsSuccess())
- return r;
-
- r = SendDescriptorDataToDeviceIfNeeded();
- if (!r.IsSuccess())
- return r;
-
- r = command_->SubmitAndReset(GetFenceTimeout());
+ Result r = SendDescriptorDataToDeviceIfNeeded();
if (!r.IsSuccess())
return r;