Destroy the surface

This commit is contained in:
Bill Currie 2019-07-13 01:20:02 +09:00
parent dd1c2db249
commit 1f24a1408a

View file

@ -119,6 +119,8 @@ Vulkan_Shutdown_Common (vulkan_ctx_t *ctx)
if (ctx->swapchain) {
QFV_DestroySwapchain (ctx->swapchain);
}
ctx->instance->funcs->vkDestroySurfaceKHR (ctx->instance->instance,
ctx->surface, 0);
if (ctx->device) {
QFV_DestroyDevice (ctx->device);
}