From 95a4214c7bfa23de90c9c78d2ceca39a145645c8 Mon Sep 17 00:00:00 2001 From: David Klein Date: Wed, 31 Jan 2024 13:38:00 +0100 Subject: [PATCH] prevent crash in kinc_g4_set_matrix4() --- .../Graphics5/Vulkan/Sources/kinc/backend/graphics5/pipeline.c.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/pipeline.c.h b/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/pipeline.c.h index 9239e17cf..09feb8f7e 100644 --- a/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/pipeline.c.h +++ b/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/pipeline.c.h @@ -274,6 +274,7 @@ kinc_g5_constant_location_t kinc_g5_pipeline_get_constant_location(kinc_g5_pipel kinc_g5_constant_location_t location; location.impl.vertexOffset = -1; location.impl.fragmentOffset = -1; + location.impl.computeOffset = -1; if (has_number(pipeline->impl.vertexOffsets, name)) { location.impl.vertexOffset = find_number(pipeline->impl.vertexOffsets, name); }