summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/gui/rhi/qrhi/tst_qrhi.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
index 568e77fd61..b6351eef45 100644
--- a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
+++ b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
@@ -247,6 +247,19 @@ void tst_QRhi::create()
QVERIFY(resUpd);
resUpd->release();
+ QRhiResourceUpdateBatch *resUpdArray[64];
+ for (int i = 0; i < 64; ++i) {
+ resUpdArray[i] = rhi->nextResourceUpdateBatch();
+ QVERIFY(resUpdArray[i]);
+ }
+ resUpd = rhi->nextResourceUpdateBatch();
+ QVERIFY(!resUpd);
+ for (int i = 0; i < 64; ++i)
+ resUpdArray[i]->release();
+ resUpd = rhi->nextResourceUpdateBatch();
+ QVERIFY(resUpd);
+ resUpd->release();
+
QVERIFY(!rhi->supportedSampleCounts().isEmpty());
QVERIFY(rhi->supportedSampleCounts().contains(1));