From dfd37bba78f9565471692bb7842087ec94dcce09 Mon Sep 17 00:00:00 2001 From: Mateo de Mayo Date: Wed, 31 Aug 2022 09:50:17 -0300 Subject: [PATCH] c/render: Fix forloop bounds innocuous typo --- src/xrt/compositor/render/render_resources.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/compositor/render/render_resources.c b/src/xrt/compositor/render/render_resources.c index 381ff4b30..974194cdd 100644 --- a/src/xrt/compositor/render/render_resources.c +++ b/src/xrt/compositor/render/render_resources.c @@ -948,7 +948,7 @@ render_resources_init(struct render_resources *r, for (uint32_t i = 0; i < ARRAY_SIZE(r->distortion.images); i++) { r->distortion.images[i] = VK_NULL_HANDLE; } - for (uint32_t i = 0; i < ARRAY_SIZE(r->distortion.images); i++) { + for (uint32_t i = 0; i < ARRAY_SIZE(r->distortion.device_memories); i++) { r->distortion.device_memories[i] = VK_NULL_HANDLE; } @@ -1035,7 +1035,7 @@ render_distortion_buffer_close(struct render_resources *r) for (uint32_t i = 0; i < ARRAY_SIZE(r->distortion.images); i++) { D(Image, r->distortion.images[i]); } - for (uint32_t i = 0; i < ARRAY_SIZE(r->distortion.images); i++) { + for (uint32_t i = 0; i < ARRAY_SIZE(r->distortion.device_memories); i++) { DF(Memory, r->distortion.device_memories[i]); } }