forked from AuroraMiddleware/gtk
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:
parent
38481680e1
commit
3c15fa96bc
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user