QRhi: fix a bad variable name in documentation example

Change-Id: I127dcaebc4d4a9d00e0cec924b0a4168a3970a71
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
bb10
Aurélien Brooke 2024-01-23 21:04:57 +01:00
parent 3042d40be7
commit 941afac108
1 changed files with 1 additions and 1 deletions

View File

@ -3604,7 +3604,7 @@ QRhi *QRhiResource::rhi() const
QRhiResourceUpdateBatch *batch = rhi->nextResourceUpdateBatch();
for (int i = 0; i < N; ++i) {
batch->updateDynamicBuffer(ubuf, i * ONE_UBUF_SIZE, 64, matrix.constData());
updates->updateDynamicBuffer(ubuf, i * ONE_UBUF_SIZE + 64, 4, &opacity);
batch->updateDynamicBuffer(ubuf, i * ONE_UBUF_SIZE + 64, 4, &opacity);
}
// ...
// beginPass(), set pipeline, etc., and then: