Index: src/gpu/vk/GrVkGpu.cpp |
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp |
index f097aef26eff04b5eb5e32cec9f3f2b6dc83eb4b..4f177ff2544e52fdaa6b5ae3e2dd10eb79cc2ff1 100644 |
--- a/src/gpu/vk/GrVkGpu.cpp |
+++ b/src/gpu/vk/GrVkGpu.cpp |
@@ -1056,7 +1056,8 @@ GrBackendObject GrVkGpu::createTestingOnlyBackendTexture(void* srcData, int w, i |
VK_CALL(GetImageSubresourceLayout(fDevice, image, &subres, &layout)); |
- if (!copy_testing_data(this, srcData, &alloc, rowCopyBytes, layout.rowPitch, h)) { |
+ if (!copy_testing_data(this, srcData, &alloc, rowCopyBytes, |
+ static_cast<size_t>(layout.rowPitch), h)) { |
GrVkMemory::FreeImageMemory(this, linearTiling, alloc); |
VK_CALL(DestroyImage(fDevice, image, nullptr)); |
return 0; |