Fix HAVE_VULKAN=OFF

This commit is contained in:
Marcus Minhorst 2025-09-22 19:09:21 -04:00 committed by Rachael Alexanderson
commit 9b74c0d37b

View file

@ -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 <zvulkan/vulkansurface.h>
#include <zvulkan/vulkanbuilders.h>
#include <zvulkan/vulkansurface.h>
#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;
}