rhi: Work around qsizetype fallout in manual tests
Change-Id: I9f0e210caacc6eefe5ed1ee6fa97574ad5e9edcc Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
parent
67faf0641d
commit
9390edb119
@ -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();
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user