From 25648cbd7273c66ab6fc9d5e647ee0268da1f4d8 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 4 Jan 2024 17:26:04 -0500 Subject: don't try to draw GrBinds that have been removed --- src/window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/window.cpp b/src/window.cpp index 5816041..0c08a2a 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -2357,6 +2357,8 @@ void RecordCommandBuffer(VkCommandBuffer commandBuffer, uint32_t imageIndex) { CompGrBinds *items = ECS_GetGrBinds(b, itemCount); for (long i = 0; i < itemCount; ++i) { CompGrBinds *binder = &items[i]; + if (binder->grBindsHandle == GrBindsHandle_MAX) + continue; if (!binder->vkPipelineLayout) continue; if (binder->instanceBindingCount < 1) { -- cgit v1.2.3