summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 118d9e8..2344fd4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -314,11 +314,13 @@ bool vulkan_renderer_create_logical_device(struct vulkan_renderer *renderer) {
if (!is_in_array(unique_queue_families, unique_queue_family_count,
indices.graphics_family)) {
+ assert(unique_queue_family_count < MAX_QUEUE_FAMILY_COUNT);
unique_queue_families[unique_queue_family_count++] =
indices.graphics_family;
}
if (!is_in_array(unique_queue_families, unique_queue_family_count,
indices.present_family)) {
+ assert(unique_queue_family_count < MAX_QUEUE_FAMILY_COUNT);
unique_queue_families[unique_queue_family_count++] = indices.present_family;
}
Go back to lisible.xyz