From fc25df6e6d16e337fdd33e45fea0a6115c80da53 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 12 Oct 2016 10:18:39 +1300 Subject: layers: Have the instance WSI flags unconditionally exist Code that changes its behavior based on these flags shouldn't also need to be a mess of ifdef. Signed-off-by: Chris Forbes --- layers/core_validation.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 25973826..155d5bd6 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -111,24 +111,12 @@ struct instance_layer_data { bool surfaceExtensionEnabled = false; bool displayExtensionEnabled = false; -#ifdef VK_USE_PLATFORM_ANDROID_KHR bool androidSurfaceExtensionEnabled = false; -#endif -#ifdef VK_USE_PLATFORM_MIR_KHR bool mirSurfaceExtensionEnabled = false; -#endif -#ifdef VK_USE_PLATFORM_WAYLAND_KHR bool waylandSurfaceExtensionEnabled = false; -#endif -#ifdef VK_USE_PLATFORM_WIN32_KHR bool win32SurfaceExtensionEnabled = false; -#endif -#ifdef VK_USE_PLATFORM_XCB_KHR bool xcbSurfaceExtensionEnabled = false; -#endif -#ifdef VK_USE_PLATFORM_XLIB_KHR bool xlibSurfaceExtensionEnabled = false; -#endif }; struct layer_data { -- cgit v1.2.3