Updated cleanup to include surface.

This commit is contained in:
2021-06-10 20:31:05 +02:00
parent 11672c0071
commit 626220f9dc

View File

@@ -218,6 +218,7 @@ int vkeInit(VKEContext* ctx, VKEConfig* config) {
} }
void vkeDestroy(VKEContext* ctx) { void vkeDestroy(VKEContext* ctx) {
vkDestroySurfaceKHR(ctx->instance, ctx->surface, NULL);
vkDestroyDevice(ctx->device, NULL); vkDestroyDevice(ctx->device, NULL);
vkDestroyInstance(ctx->instance, NULL); vkDestroyInstance(ctx->instance, NULL);
} }