From 626220f9dc9e712aa9419e4db33c54dc13d5a2c0 Mon Sep 17 00:00:00 2001 From: Marvin Blum Date: Thu, 10 Jun 2021 20:31:05 +0200 Subject: [PATCH] Updated cleanup to include surface. --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index d1c5bf5..2213f4c 100644 --- a/src/main.c +++ b/src/main.c @@ -218,6 +218,7 @@ int vkeInit(VKEContext* ctx, VKEConfig* config) { } void vkeDestroy(VKEContext* ctx) { + vkDestroySurfaceKHR(ctx->instance, ctx->surface, NULL); vkDestroyDevice(ctx->device, NULL); vkDestroyInstance(ctx->instance, NULL); }