rhi: Work around qsizetype fallout in manual tests

Change-Id: I9f0e210caacc6eefe5ed1ee6fa97574ad5e9edcc
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
Laszlo Agocs 2020-08-30 15:59:55 +02:00
parent 67faf0641d
commit 9390edb119
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ void Window::customRender()
}
if (!d.compressedData.isEmpty()) {
{
QRhiTextureUploadDescription desc({ 0, 0, { d.compressedData[0].constData(), d.compressedData[0].size() } });
QRhiTextureUploadDescription desc({ 0, 0, { d.compressedData[0].constData(), int(d.compressedData[0].size()) } });
u->uploadTexture(d.tex, desc);
d.compressedData.clear();
}

View File

@ -289,7 +289,7 @@ void Window::customInit()
qint32 flip = 1;
d.initialUpdates->updateDynamicBuffer(d.ubuf, 64, 4, &flip);
QRhiTextureUploadDescription desc({ 0, 0, { floatData.constData(), floatData.size() } });
QRhiTextureUploadDescription desc({ 0, 0, { floatData.constData(), int(floatData.size()) } });
d.initialUpdates->uploadTexture(d.tex, desc);
}