summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2020-07-08 17:10:58 +0200
committerPaul Lemire <paul.lemire@kdab.com>2020-07-10 14:29:11 +0200
commit67428c1fdcc04a0e4403dee593ee9ae6805f60b5 (patch)
tree0f26bd75d7a4c887c12abd2d686c86d4184bce4b /src
parentc3fa82cdcfdddf16efba7cebd0fecd4630a3c20e (diff)
RHIBuffer: remove unreachable code path
Change-Id: I7b1c871557d5b15fd0ab843d2702951581570e27 Reviewed-by: Jean-Michaƫl Celerier <jean-michael.celerier@kdab.com> Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/renderers/rhi/io/rhibuffer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/renderers/rhi/io/rhibuffer.cpp b/src/plugins/renderers/rhi/io/rhibuffer.cpp
index ba29e8ac9..241c86703 100644
--- a/src/plugins/renderers/rhi/io/rhibuffer.cpp
+++ b/src/plugins/renderers/rhi/io/rhibuffer.cpp
@@ -86,10 +86,6 @@ bool RHIBuffer::bind(SubmissionContext *ctx, Type t)
const auto kind = m_dynamic ? QRhiBuffer::Dynamic : QRhiBuffer::Static;
const auto usage = bufferTypeToRhi(t);
- // RHI does not seem to support using the same buffer with different types
- if (m_rhiBuffer)
- assert(m_rhiBuffer->usage() == usage);
-
if (!m_rhiBuffer)
m_rhiBuffer = ctx->rhi()->newBuffer(kind, usage, m_allocSize);
assert(m_rhiBuffer);