mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Clean up the swapchain
And be a little safer about it
This commit is contained in:
parent
b4dc746a66
commit
dd1c2db249
1 changed files with 9 additions and 3 deletions
|
@ -116,9 +116,15 @@ Vulkan_Init_Common (vulkan_ctx_t *ctx)
|
||||||
void
|
void
|
||||||
Vulkan_Shutdown_Common (vulkan_ctx_t *ctx)
|
Vulkan_Shutdown_Common (vulkan_ctx_t *ctx)
|
||||||
{
|
{
|
||||||
Sys_Printf ("are we here?\n");
|
if (ctx->swapchain) {
|
||||||
|
QFV_DestroySwapchain (ctx->swapchain);
|
||||||
|
}
|
||||||
|
if (ctx->device) {
|
||||||
QFV_DestroyDevice (ctx->device);
|
QFV_DestroyDevice (ctx->device);
|
||||||
|
}
|
||||||
|
if (ctx->instance) {
|
||||||
QFV_DestroyInstance (ctx->instance);
|
QFV_DestroyInstance (ctx->instance);
|
||||||
|
}
|
||||||
ctx->instance = 0;
|
ctx->instance = 0;
|
||||||
ctx->unload_vulkan (ctx);
|
ctx->unload_vulkan (ctx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue