diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2024-01-04 17:26:04 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2024-01-04 17:26:04 -0500 |
| commit | 25648cbd7273c66ab6fc9d5e647ee0268da1f4d8 (patch) | |
| tree | 03015c33684f6b945752f01b2fdd983af72a755f /src/window.cpp | |
| parent | b8b15eb8789458b228f94af9f91e6efa2964baee (diff) | |
don't try to draw GrBinds that have been removed
Diffstat (limited to 'src/window.cpp')
| -rw-r--r-- | src/window.cpp | 2 |
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) { |
