diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-30 09:28:38 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-30 15:24:43 +0200 |
commit | bed8c5d678bc73bede59bbddf5e8b6af05185780 (patch) | |
tree | 3becd8c3cc73115fe0c5746f0dc652c876cab20e /src/gui/rhi/qrhid3d11.cpp | |
parent | 60666ed2fa20fa64ca9ad02c2124876a1d11b42a (diff) |
Switch to qvla where it makes sense in rhi
For all of these we know in advance that the vast majority of usages
will not exceed a certain number of elements. Also, none of these are
copied or moved ever.
Change-Id: I48aedf143e221dc178d661e23454d1e4fb7a271b
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhid3d11.cpp')
-rw-r--r-- | src/gui/rhi/qrhid3d11.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/rhi/qrhid3d11.cpp b/src/gui/rhi/qrhid3d11.cpp index 6157381acb..e5b03e1d0e 100644 --- a/src/gui/rhi/qrhid3d11.cpp +++ b/src/gui/rhi/qrhid3d11.cpp @@ -1641,7 +1641,7 @@ void QRhiD3D11::finishActiveReadbacks() if (readback.result->completed) completedCallbacks.append(readback.result->completed); - activeTextureReadbacks.removeAt(i); + activeTextureReadbacks.removeLast(); } for (int i = activeBufferReadbacks.count() - 1; i >= 0; --i) { @@ -1663,7 +1663,7 @@ void QRhiD3D11::finishActiveReadbacks() if (readback.result->completed) completedCallbacks.append(readback.result->completed); - activeBufferReadbacks.removeAt(i); + activeBufferReadbacks.removeLast(); } for (auto f : completedCallbacks) |