Commit 580408d2 authored by Laszlo Agocs's avatar Laszlo Agocs
Browse files

Allow null in resourceUpdate()

It is not symmetric with beginPass() and endPass() otherwise (as those do
allow null).
parent 3c7ad5c6
......@@ -3742,7 +3742,8 @@ void QRhiResourceUpdateBatchPrivate::merge(QRhiResourceUpdateBatchPrivate *other
*/
void QRhiCommandBuffer::resourceUpdate(QRhiResourceUpdateBatch *resourceUpdates)
{
m_rhi->resourceUpdate(this, resourceUpdates);
if (resourceUpdates)
m_rhi->resourceUpdate(this, resourceUpdates);
}
/*!
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment