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); }