diff options
-rw-r--r-- | src/gui/rhi/qrhi.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhi.cpp b/src/gui/rhi/qrhi.cpp index e3bb8f288e..82a304865e 100644 --- a/src/gui/rhi/qrhi.cpp +++ b/src/gui/rhi/qrhi.cpp @@ -5650,9 +5650,12 @@ void QRhiCommandBuffer::endPass(QRhiResourceUpdateBatch *resourceUpdates) \note This function can only be called inside a render pass, meaning between a beginPass() and endPass() call. + + \note The new graphics pipeline \a ps must be a valid pointer. */ void QRhiCommandBuffer::setGraphicsPipeline(QRhiGraphicsPipeline *ps) { + Q_ASSERT(ps != nullptr); m_rhi->setGraphicsPipeline(this, ps); } |