[gtk/pvs-fixes: 1/11] vulkan: Fix image uploading by regions
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/pvs-fixes: 1/11] vulkan: Fix image uploading by regions
- Date: Thu, 4 Feb 2021 05:41:10 +0000 (UTC)
commit 3c15fa96bc743f414e0ad958f4282dba5c286cb1
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 4 00:09:09 2021 -0500
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/
gsk/vulkan/gskvulkanimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/vulkan/gskvulkanimage.c b/gsk/vulkan/gskvulkanimage.c
index 64e780bb7f..b73578afde 100644
--- a/gsk/vulkan/gskvulkanimage.c
+++ b/gsk/vulkan/gskvulkanimage.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]