summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/window.cpp2
1 files changed, 2 insertions, 0 deletions
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) {