From 146f7035d806fc0e8748d4a6c47270782fce0bad Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 19 Apr 2019 08:36:19 +0200 Subject: [PATCH] - fixed: The Vulkan device may only be deleted if Vulkan is present. --- src/posix/sdl/sdlglvideo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/posix/sdl/sdlglvideo.cpp b/src/posix/sdl/sdlglvideo.cpp index d5b9ad3d1..47580f830 100644 --- a/src/posix/sdl/sdlglvideo.cpp +++ b/src/posix/sdl/sdlglvideo.cpp @@ -255,7 +255,9 @@ SDLVideo::SDLVideo () SDLVideo::~SDLVideo () { +#ifdef HAVE_VULKAN delete device; +#endif } DFrameBuffer *SDLVideo::CreateFrameBuffer ()