Line 0
Link Here
|
|
|
1 |
--- src/posix/sdl/sdlglvideo.cpp.orig 2019-04-12 20:46:17 UTC |
2 |
+++ src/posix/sdl/sdlglvideo.cpp |
3 |
@@ -189,7 +189,9 @@ class SDLVideo : public IVideo |
4 |
{ |
5 |
public: |
6 |
SDLVideo (); |
7 |
+#ifdef HAVE_VULKAN |
8 |
~SDLVideo (); |
9 |
+#endif |
10 |
|
11 |
DFrameBuffer *CreateFrameBuffer (); |
12 |
|
13 |
@@ -253,13 +255,15 @@ SDLVideo::SDLVideo () |
14 |
Priv::vulkanEnabled = false; |
15 |
} |
16 |
} |
17 |
-#endif |
18 |
} |
19 |
+#endif |
20 |
|
21 |
+#ifdef HAVE_VULKAN |
22 |
SDLVideo::~SDLVideo () |
23 |
{ |
24 |
delete device; |
25 |
} |
26 |
+#endif |
27 |
|
28 |
DFrameBuffer *SDLVideo::CreateFrameBuffer () |
29 |
{ |