diff --git a/src/common/platform/posix/cocoa/i_video.mm b/src/common/platform/posix/cocoa/i_video.mm index 88c1b9b7e..904bf611b 100644 --- a/src/common/platform/posix/cocoa/i_video.mm +++ b/src/common/platform/posix/cocoa/i_video.mm @@ -3,6 +3,7 @@ ** **--------------------------------------------------------------------------- ** Copyright 2012-2018 Alexey Lysiuk + ** Copyright 2017-2025 GZDoom Maintainers and Contributors ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without @@ -34,33 +35,33 @@ #include "gl_load.h" #ifdef HAVE_VULKAN -#include #include +#include #endif #include "i_common.h" -#include "v_video.h" #include "bitmap.h" #include "c_dispatch.h" +#include "gl_framebuffer.h" #include "hardware.h" #include "i_system.h" #include "m_argv.h" #include "m_png.h" +#include "printf.h" #include "st_console.h" #include "v_text.h" +#include "v_video.h" #include "version.h" -#include "printf.h" -#include "gl_framebuffer.h" #ifdef HAVE_GLES2 #include "gles_framebuffer.h" #endif #ifdef HAVE_VULKAN #include "vulkan/system/vk_renderdevice.h" -#endif bool I_CreateVulkanSurface(VkInstance instance, VkSurfaceKHR *surface); +#endif extern bool ToggleFullscreen; @@ -378,7 +379,9 @@ public: ~CocoaVideo() { +#ifdef HAVE_VULKAN m_vulkanSurface.reset(); +#endif ms_window = nil; }