From 2fe5ba8f3b1f34a68954b9c23c302b729da8fd63 Mon Sep 17 00:00:00 2001 From: bjorn Date: Sat, 24 Feb 2024 15:45:10 -0800 Subject: [PATCH] Ensure all binding fields are fully initialized; --- src/modules/graphics/graphics.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/graphics/graphics.c b/src/modules/graphics/graphics.c index 38fffc44..a8a9e8fe 100644 --- a/src/modules/graphics/graphics.c +++ b/src/modules/graphics/graphics.c @@ -6088,6 +6088,8 @@ static gpu_bundle_info* lovrPassResolveBindings(Pass* pass, Shader* shader, gpu_ for (uint32_t i = 0; i < bundle->count; i++) { bundle->bindings[i] = pass->bindings[shader->resources[i].binding]; bundle->bindings[i].type = shader->resources[i].type; + bundle->bindings[i].number = shader->resources[i].binding; + bundle->bindings[i].count = 0; } pass->flags &= ~DIRTY_BINDINGS;