vulkan: Fix image uploading by regions

This code did not make sense; it was incrementing
the wrong variable.

Pointed out in https://www.viva64.com/en/b/0793/
This commit is contained in:
Matthias Clasen 2021-02-04 00:09:09 -05:00
parent 38481680e1
commit 3c15fa96bc

View File

@ -718,7 +718,7 @@ gsk_vulkan_image_upload_regions (GskVulkanImage *self,
}
else
{
for (gsize r = 0; r < regions[i].height; i++)
for (gsize r = 0; r < regions[i].height; r++)
memcpy (m + r * regions[i].width * 4, regions[i].data + r * regions[i].stride, regions[i].width * 4);
}