Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Laszlo Agocs
qtrhi
Commits
580408d2
Commit
580408d2
authored
Mar 21, 2019
by
Laszlo Agocs
Browse files
Allow null in resourceUpdate()
It is not symmetric with beginPass() and endPass() otherwise (as those do allow null).
parent
3c7ad5c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rhi/qrhi.cpp
View file @
580408d2
...
@@ -3742,7 +3742,8 @@ void QRhiResourceUpdateBatchPrivate::merge(QRhiResourceUpdateBatchPrivate *other
...
@@ -3742,7 +3742,8 @@ void QRhiResourceUpdateBatchPrivate::merge(QRhiResourceUpdateBatchPrivate *other
*/
*/
void
QRhiCommandBuffer
::
resourceUpdate
(
QRhiResourceUpdateBatch
*
resourceUpdates
)
void
QRhiCommandBuffer
::
resourceUpdate
(
QRhiResourceUpdateBatch
*
resourceUpdates
)
{
{
m_rhi
->
resourceUpdate
(
this
,
resourceUpdates
);
if
(
resourceUpdates
)
m_rhi
->
resourceUpdate
(
this
,
resourceUpdates
);
}
}
/*!
/*!
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment