From 9b8d4a9e453b23f7b5b70280ee822f7f3a475261 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 12 Jun 2020 17:39:41 +0200 Subject: rhi manual tests: Prevent warnings with MSVC The QPair changes trigger warnings about size_t vs. quint32. We made offsets and sizes 32-bit in the QRhi API to emphasize that some of the graphics APIs are using 32-bit sizes still. It's a bit unfortunate that pairs now generate warnings when the size does not match. Just cast as needed. Change-Id: I88504eed8be6f4bdb2205b3671e2c2a9db9fcb1e Reviewed-by: Eirik Aavitsland --- tests/manual/rhi/compressedtexture_bc1/compressedtexture_bc1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/manual/rhi/compressedtexture_bc1') diff --git a/tests/manual/rhi/compressedtexture_bc1/compressedtexture_bc1.cpp b/tests/manual/rhi/compressedtexture_bc1/compressedtexture_bc1.cpp index b6526027d3..24227305aa 100644 --- a/tests/manual/rhi/compressedtexture_bc1/compressedtexture_bc1.cpp +++ b/tests/manual/rhi/compressedtexture_bc1/compressedtexture_bc1.cpp @@ -191,7 +191,7 @@ void Window::customRender() cb->setShaderResources(); const QRhiCommandBuffer::VertexInput vbufBindings[] = { { d.vbuf, 0 }, - { d.vbuf, 36 * 3 * sizeof(float) } + { d.vbuf, quint32(36 * 3 * sizeof(float)) } }; cb->setVertexInput(0, 2, vbufBindings); cb->draw(36); -- cgit v1.2.3