summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2020-08-18 16:32:56 +0200
committerPaul Lemire <paul.lemire@kdab.com>2020-08-24 16:00:24 +0200
commit7cad4a86bcbad2aa8736be65c72dc95bd51b20ae (patch)
tree5baaf5fe9170f14cccbcff440e12d72c8dbdb52d
parent918018b717ee597de67dc0a7645db753e5e2b2b6 (diff)
rhi: remove duplicate code block
Change-Id: I22530d36bccc1045441d732006d4f135ae951aca Reviewed-by: Mike Krus <mike.krus@kdab.com>
-rw-r--r--src/plugins/renderers/rhi/renderer/renderer.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/plugins/renderers/rhi/renderer/renderer.cpp b/src/plugins/renderers/rhi/renderer/renderer.cpp
index d4680d98f..489e8aa02 100644
--- a/src/plugins/renderers/rhi/renderer/renderer.cpp
+++ b/src/plugins/renderers/rhi/renderer/renderer.cpp
@@ -2726,16 +2726,6 @@ bool Renderer::executeCommandsSubmission(const RHIPassInfo &passInfo)
// Prevents further processing which could be catastrophic
command.m_isValid = false;
}
-
- if (command.m_type == RenderCommand::Draw) {
- if (!uploadBuffersForCommand(cb, rv, command)) {
- // Something went wrong trying to upload buffers
- // -> likely that frontend buffer has no initial data
- qCWarning(Backend) << "Failed to upload buffers";
- // Prevents further processing which could be catastrophic
- command.m_isValid = false;
- }
- }
});
// Record clear information